check for the existence of a variable