if ($this->isSpecial()) {
$compiler->repr(true);
} else {
- $compiler->raw('array_key_exists(')->repr($name)->raw(', $context)');
+ $compiler
+ ->raw('(isset($context[')
+ ->string($name)
+ ->raw(']) || array_key_exists(')
+ ->string($name)
+ ->raw(', $context))');
}
} elseif ($this->isSpecial()) {
$compiler->raw($this->specialVars[$name]);