{% if alerts|length == 0 %} Alerts are not found {% else %} {% for alert in alerts %}
{% endfor %} {% endif %}