groovy - ternary operator