protect against clobbering nil and null in variables scope