{% set variants = getVariantList() %} {% if variants|length > 0 %} {% for variant in variants %} {% endfor %} {% endif %}