{% if item.secondaryImage is not null %} {% set webpFilename = item.secondaryImage.filename|split('.')|first ~ ".webp" %} {# the second parameter is the name of the property with the UploadableField annotation #}