code/template/filter/block.php
public function hasBlocks($name)
    {
        return isset($this->__blocks[$name]) && !empty($this->__blocks[$name]);
    }
public function hasBlocks($name)
    {
        return isset($this->__blocks[$name]) && !empty($this->__blocks[$name]);
    }
public function hasBlocks ( $ name ) { return isset ( $ this -> __blocks [ $ name ] ) && ! empty ( $ this -> __blocks [ $ name ] ) ; }
Check if blocks exists

@param $name
@return bool TRUE if blocks exist, FALSE otherwise
Check if blocks exists