Hide empty elements from content collection

Tomas: Is there a similar solution for my question here? - CMS - hide element if value is null - CMS - Forum | Webflow

Problem would be that the field for the collection item would need to be tested for null, vs testing the contents of a div. Any ideas?