Hi,
I'm trying to email 2 tables with a respective table header (see below)

The table headers are being fed by a text input tool and I'm using the layout tool to organize both tables and headers.
I want this workflow to run in such a way that if the tables don't have any content then that table and respective header do not get emailed. I'm facing the issue that when the tables don't have any content, the headers still get emailed out.

Is there a way around this? Maybe there is a different way to add a table header?
When there is data in the tables, emails looks like this

and if either table doesn't have data, it should be emailed.
All help is appreciated.
Thank you,
Calvin