{% if form is defined %} {% set inLibrary = "medias/library" in masterRequest().uri %} {% if inLibrary %}