Is there an isPlaying() type function for Animator

I know you can do animation.isPlaying() but is there something similiar for Animator ? So if I have:

Animator animator;

void Start()
{
    animator = GetComponenet<Animator>();
}

Then I could go:

void Update()
{
    if(Input.GetMouseButtonDown(0))

        Instantiate(shot, shotSpawn.position, shotSpawn.rotation);

            if(!animator.isPlaying("ShootAnimation"))
            {
                animator.SetTrigger("ShootAnimation"); // play shooting animation
            }
    }
}

I ended up doing this and it worked:

if(!animator.GetCurrentAnimatorStateInfo(0).IsName("ShootAnimation"))
			{
				animator.SetTrigger("Shoot");
			}

This works for me:

    bool AnimatorIsPlaying(){
        return animator.GetCurrentAnimatorStateInfo(0).length >
               animator.GetCurrentAnimatorStateInfo(0).normalizedTime;
    }