Add isNullOrUndefined helper method.
Use isNullOrUndefined instead of relying on != with null.