/**
  * Custom template handling for children blocks (filters) before to display theme
  *
  * @return Smile_ElasticSearch_Model_Catalog_Layer Self reference
  */
 protected function _beforeToHtml()
 {
     if (Mage::helper('smile_elasticsearch')->isActiveEngine()) {
         foreach ($this->_filterTemplates as $filterName => $template) {
             $block = $this->getChild($filterName . '_filter');
             if ($block) {
                 $block->setTemplate($template);
             }
         }
     }
     return parent::_beforeToHtml();
 }