unity – How can I check if Animator ended playing specific State animation?

This way it’s getting inside all the time while the animation state is playing :

void Update()
    {
        if (this.animator.GetCurrentAnimatorStateInfo(0).IsName("Stand Up"))
        {
            string tt = "";
        }
    }

So I tried to add ! to check if it false :

void Update()
    {
        if (!this.animator.GetCurrentAnimatorStateInfo(0).IsName("Stand Up"))
        {
            string tt = "";
        }
    }

but this way it’s never getting inside even if the state animation finished playing.

I have one Base Layer in the animator controller.