private function hasVariable($variable) { return "isset(\$context['{$variable}']) && !empty(\$context['{$variable}'])"; }