Do not play with console without ensuring the variable is defined.