javascript check if variable is null or empty or undefined