How can I hide empty collections on my ecommerce site?

Hi,

on my collection pages I want to hide collections that have no products. is there a code I can implement? Because I have alot of suppliers so I don’t want to hide it in the actually shopify collections in case I do get that brand.
https://luxurymrkt.com/collections?page=5

thank you

I did it this way. Go to your collections and click on the one you want to hide.

Click on manage, beside publishing and uncheck both boxes and it should take it off of your store.