Add some useful methods to query property attributes