No Category if '0' products

for osCommerce Online Merchant v2.2

I searched for a contribution or a way to not show categories if there were no products in it or its subcategories in boxes categories. Couldn't find one other than enable disable categories and that can be time consuming if there are a lot of categories. I already have my own enable disable categories, needed something else so I am putting this here if any one else needs it.

Files