1--TEST-- 2"for" tag adds a loop variable to the context locally 3--TEMPLATE-- 4{% for item in items %} 5{% endfor %} 6{% if loop is not defined %}WORKS{% endif %} 7--DATA-- 8return ['items' => []] 9--EXPECT-- 10WORKS 11