Groovier way to handle the isEnabled optimization.