Check if data is undefined or null instead of false.