Functions to know if the variable is defined and to set a default value if not.