unity check if animator has parameter

Code Example - unity check if animator has parameter

                
                        if (Animator.parameterCount > 0)
{
	Debug.Log("Animator has parameters");
}
else
{
	Debug.Log("Animator has no parameters");
}