original_string: public function exists($name)
      {
          $viewblocks = $this->get('viewblocks', []);
  
          return !empty($viewblocks[$name]) || $this->Blocks->exists($name);
      }
code: public function exists($name)
      {
          $viewblocks = $this->get('viewblocks', []);
  
          return !empty($viewblocks[$name]) || $this->Blocks->exists($name);
      }
code_tokens: public function exists ( $ name ) { $ viewblocks = $ this -> get ( 'viewblocks' , [ ] ) ; return ! empty ( $ viewblocks [ $ name ] ) || $ this -> Blocks -> exists ( $ name ) ; }
docstring: Check if a block exists
  
  @param string $name Name of the block
  
  @return bool
docstring_tokens: Check if a block exists