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;
    }
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;
    }
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 ; }
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.
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