{% set category_tree = shopCategoryTree() %}
{% set brand_tree = shopBrandTree() %}

{% if category_tree is not empty or brand_tree is not empty %}
    <div id="productFilter" class="js_basicSidebarAccordion">

        {% if category_tree is not empty %}

            <h5>Categories</h5>

            <ul class="basicCategories">
                {{ macro.list_tree(category_tree, true) }}
            </ul>

        {% endif %}

        {% if brand_tree is not empty %}

            <h5>Brands</h5>

            <ul class="basicBrands">
                {{ macro.list_tree(brand_tree) }}
            </ul>

        {% endif %}

    </div> <!-- #productFilter -->
{% endif %}
