Fix property check when property value actually is undefined