{% if exception.trace|length %} {% for trace in exception.trace %} {% include '@Twig/Exception/trace.txt.twig' with { 'trace': trace } only %} {% endfor %} {% endif %}