/** * Validates the product key provided in the license * * @param string $productKey * @return bool */ private function isValidProductKey($productKey) { if (empty($productKey)) { return false; } $validKeys = ShopwareEdition::getValidEditions(); return in_array($productKey, $validKeys, true); }