Check if all objects have the property first.

Then check if the property values are the same.