public function isInstalled($pluginName) { $plugin = $this->getPluginByCriteria('name', $pluginName)->first(); if ($plugin) { return true; } return false; }