/** * Check if rules module is enabled * * @return bool */ public function hasError() { if (null === $this->blnError) { $this->blnError = in_array('isotope_rules', \Config::getInstance()->getActiveModules()) && Rule::countAll() == 0; } return $this->blnError; }