{% if doctrines|length > 0 %} {% for doctrine in doctrines %} {% endfor %} {% endif %}