{% load static %} {% if not assets_in_head %}{% endif %}
AND and spaces bind before OR. Use parentheses to change the grouping.