public function __isset($key) { $stack = call_user_func_array('array_merge', $this->var_stack); return isset($stack[$key]); }