[javascript] How to check if a variable is both null and /or undefined in JavaScript