{% if referencePopup is defined %} {% set popups = popups|merge({referencePopup}) %} {% endif %} {% if popups|length > 0 %} {% endif %}