Generic predicate
boolean
isTrue(T object)
returns true if the predicate is satisfied for given object
Groovy Documentation