function isRealValue(obj) { return obj && obj !== 'null' && obj !== 'undefined'; } //Use isRealValue(obj) to check further, will always return truthy object.
return value == null; // also returns true if value is undefined