Hide Bundles with No Products - DocMerge

Hi!

I am looking to hide any bundles on a quote DocMerge which have no products in it. We used to be able to do this in PDF manager ({foreach from=$product_bundles item="bundle"} {if $bundle.products|@count}) but in DocMerge there doesn't appear to be a way to do this. Can i have some advice please?

I have tried {if name.length > 0} to hide the core bundle, which doesn't work.

Thanks,

Ross