I'm using Document Generation and have used filtering in lists like so:
{% repeating-section cats[weight > 5] %}
This will loop over a cats array and only show items where the weight property is over 5. This works fine, but I'm using it in a "section" with an intro and I want to hide the entire section if that particular array is empty. How can I use that in a condition?