a string (including GStrings) evaluates to true if not null and not empty, false if null or empty
def s = '' ... if (s) println 's is not empty' else println 's is empty'
will print: 's is empty'