Stop processing if all branches are empty - multi branch empty table switch

I have a workflow with multiple branches and want to stop further processing if all branches are empty. An Empty Table Switch works only on one branch. If I put one on each branch, the workflow will stop if any branch is empty. But I want to continue untill all branches are empty. The only solution I could come up with is this. Are there any better ways?