public function getVariableLocal($name)
    {
        $vars = $this->getScope()->variables;
        
        if (array_key_exists($name, $vars)) {
            return $vars[$name];
        }
        
        if (func_num_args() > 1) {
            return func_get_arg(1);
        }
        
        throw new \OutOfBoundsException(sprintf('Variable "%s" not found in scope %s', $name, $this));
    }