Robbo\Presenter\Presenter::offsetExists PHP Method

offsetExists() public method

* This will be called when isset() is called via array access.
public offsetExists ( $offset )
$offset
    public function offsetExists($offset)
    {
        // We only check isset on the array, if it is an object we return true as the object could be overloaded
        if (!is_array($this->object)) {
            return true;
        }
        if ($method = $this->getPresenterMethodFromVariable($offset)) {
            $result = $this->{$method}();
            return isset($result);
        }
        return isset($this->object[$offset]);
    }