/** * Check if module is already purchased * * @return boolean */ public function isPurchased() { $xcnModulePlan = $this->getXcnPlan(); return (bool) (static::NOT_XCN_MODULE == $xcnModulePlan ? $this->getLicenseKey() : $this->isAvailable() && $xcnModulePlan == \XLite::getXCNLicenseType()); }