propertyShouldBeOfType now correctly determines if a property exists or not.