Sometimes our user has no data for the table in a template. In this case, the table is rendered anyway and will display one row of the variables. That is not an optimal result.
I see functions called removeTemplateVariable and deleteTemplateBlock, but I can't figure out if they will do what we need. And my tests so far have not been successful.
Is there a way to delete the table completely if no data available? Is there an example of this?