groovy/groovy-core — pull request #17 by pledbrook (2012-01-19 10:19:32+00:00)
Title: Add hasVariable() method to Binding

Currently, if you want to safely check whether a variable exists in the binding or not, you have to use code like `binding.variables?.containsKey('prop')`, which is unintuitive. So this pull request adds a `hasVariable()` method, which is the one that I automatically attempt to use before realising it doesn't exist.

Erm...this pull request done completely via GitHub UI, so may need testing :)