Use empty() to check the existence of the variable.