original_string: public function __isset($helper)
      {
          if (isset($this->_loaded[$helper])) {
              return true;
          }
  
          try {
              $this->load($helper);
          } catch (Exception\MissingHelperException $exception) {
              if ($this->_View->getPlugin()) {
                  $this->load($this->_View->getPlugin() . '.' . $helper);
  
                  return true;
              }
          }
  
          if (!empty($exception)) {
              throw $exception;
          }
  
          return true;
      }
code: public function __isset($helper)
      {
          if (isset($this->_loaded[$helper])) {
              return true;
          }
  
          try {
              $this->load($helper);
          } catch (Exception\MissingHelperException $exception) {
              if ($this->_View->getPlugin()) {
                  $this->load($this->_View->getPlugin() . '.' . $helper);
  
                  return true;
              }
          }
  
          if (!empty($exception)) {
              throw $exception;
          }
  
          return true;
      }
code_tokens: public function __isset ( $ helper ) { if ( isset ( $ this -> _loaded [ $ helper ] ) ) { return true ; } try { $ this -> load ( $ helper ) ; } catch ( Exception \ MissingHelperException $ exception ) { if ( $ this -> _View -> getPlugin ( ) ) { $ this -> load ( $ this -> _View -> getPlugin ( ) . '.' . $ helper ) ; return true ; } } if ( ! empty ( $ exception ) ) { throw $ exception ; } return true ; }
docstring: Tries to lazy load a helper based on its name, if it cannot be found
  in the application folder, then it tries looking under the current plugin
  if any
  
  @param string $helper The helper name to be loaded
  @return bool whether the helper could be loaded or not
  @throws \Cake\View\Exception\MissingHelperException When a helper could not be found.
  App helpers are searched, and then plugin helpers.
docstring_tokens: Tries to lazy load a helper based on its name if it cannot be found in the application folder then it tries looking under the current plugin if any