@WouterJ ``{% if app.user %}`` is not the same than ``{% if app.user is defined %}``. The first one returns false for falsy values (``if (null)`` is false) and explode on undefined variables (when using strict variables).