code: public static MetaProperty hasProperty(Object self, String name) {
          return InvokerHelper.getMetaClass(self).hasProperty(self, name);
      }
docs: <p>Returns true of the implementing MetaClass has a property of the given name
  
  <p>Note that this method will only return true for realised properties and does not take into
  account implementation of getProperty or propertyMissing
  
  @param self The object to inspect
  @param name The name of the property of interest
  @return The found MetaProperty or null if it doesn't exist
  @see groovy.lang.MetaObjectProtocol#hasProperty(java.lang.Object, java.lang.String)
  @since 1.6.1