Groovy "truthness" should let you just write this as "if (licenseResult)"