{% load static %} {% with collection.get_items as collection_items %} {% if collection_items %} {% endif %} {% endwith %}