Removing unnecessary {% if %} in the base template.