{% if not media and mediaId %} {% set mediaCollection = searchMedia([mediaId], context.context) %} {% set media = mediaCollection.get(mediaId) %} {% endif %}