display sub menu only if there are entries for the submenu, if there are no sections, open the categories by default