/** * Check availability display layer block * * @return bool */ public function canShowBlock() { $helper = Mage::helper('elasticsearch'); if ($helper->isThirdPartSearchEngine() && $helper->isActiveEngine()) { return $this->canShowOptions() || count($this->getLayer()->getState()->getFilters()); } return parent::canShowBlock(); }