public function exists($name)
    {
        $viewblocks = $this->get('viewblocks', []);

        return !empty($viewblocks[$name]) || $this->Blocks->exists($name);
    }
public function exists($name)
    {
        $viewblocks = $this->get('viewblocks', []);

        return !empty($viewblocks[$name]) || $this->Blocks->exists($name);
    }
public function exists ( $ name ) { $ viewblocks = $ this -> get ( 'viewblocks' , [ ] ) ; return ! empty ( $ viewblocks [ $ name ] ) || $ this -> Blocks -> exists ( $ name ) ; }
Check if a block exists

@param string $name Name of the block

@return bool
Check if a block exists