Returning boolean when value is undefined or null