protected static function doElseChain(&$context) { if ($context['elsechain']) { $context['elsechain'] = false; } else { array_unshift($context['elselvl'], array()); } }