Spawn event system

Hi I’ve created a script with and old version of unity and in unity 5 I have some errors

using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class SpawnExplosions : MonoBehaviour
{
    public GameObject prefab;
    public Camera viewCamera;
    public Vector2 range = new Vector2(300f, 200f);
    public float frequency = 0.25f;
    public float duration = 1f;

    float m_NextSpawn = 0f;

    void Update ()
    {
        float time = Time.time;
        var system = EventSystemManager.currentSystem;
        if (time > m_NextSpawn && system && !system.IsPointerOverEventSystemObject())
        {
            m_NextSpawn = time + frequency;

            Vector3 position = Input.mousePosition;
            position.z = 10f;
            position = GetComponent<Camera>().ScreenToWorldPoint(position);

            GameObject child = Instantiate (prefab) as GameObject;
            child.transform.localPosition = position;
            child.transform.localRotation = Quaternion.identity;
            child.transform.localScale = Vector3.one;
            Destroy(child, duration);
        }
    }
}

Assets/Scripts/SpawnExplosions.cs(19,21): error CS0019: Operator &&' cannot be applied to operands of type bool’ and object' Assets/Scripts/SpawnExplosions.cs(18,30): error CS0103: The name EventSystemManager’ does not exist in the current context

Someone could help?

The answer to this is easily searchable on both this forum and the Internet. Use the error as the search criteria.