{% if request.user.is_authenticated %} {% if exists %} {% else %} {% endif %} {% endif %}