this could be tied to a configurable option to display the amount of product varients which are allocated to that category
when its 0 the category would not display (but also configurable - because you might want the category to display if for example there is information on the category page that you want to be available, also if someone browses your store and you don't have a category for a product they are looking for then they may not come back to your store