Use undefined instead of null for undefined variable