{% if app.request.hasPreviousSession %} {% set flashbag = app.session.flashbag.all() %} {% if flashbag|length %}