Coercing to boolean may (arguably) be better in Groovy. It's certainly shorter.