Hide an empty section of item from CMS

Question:
Hi! I hope you’re all doing fine!

I created a CMS content and every item has it own page with a gallery.

Now, there are a few items of my list that don’t have pictures to put in the gallery.

How can I hide the section with the galley on the website page of my item that doesn’t own pictures? → because now it just looks like there is a blank page and I don’t know how to hide it.

Product:
Wix Studio

Thank you for your help!!