title: Groovy hasProperty/respondsTo
body: <p>All the <a href="http://mrhaki.blogspot.com/2009/10/groovy-goodness-check-if-method-or.html" rel="noreferrer">examples</a> I see of using <code>hasProperty</code> or <code>respondsTo</code> show it being invoked on a <code>metaClass</code>. Is there a reason why these methods shouldn't be invoked on the object itself, like this:</p>
  
  <pre><code>def propertyName = 'time'
  
  if (new Date().hasProperty(propertyName))
    println 'yes'
  else 
    println 'no'
  </code></pre>