How to make a statement if the input field is empty

Hey guys, can some one tell me how to make a if statement if the input field is empty? Thanks.

if(string.IsNullOrEmpty(TMPyourRef.text))
{
     //Do What you Want
}

Here it is.