{% if app.request.hasPreviousSession and (app.session.flashbag.peek('notice')|length > 0 or app.session.flashbag.peek('error')|length > 0) %}