Implemented the isLicensed function.