private function checkMarketplaceIsEnabled() { if (!isset($this->marketplaceClient)) { throw new PluginInstallerException('Marketplace plugin needs to be enabled to perform this action.'); } }