Displaying categories of events

I'd like to make a page that lists the category group of my events channel, linking to the categories that have upcoming events, and only outputting the names of categories without any entries. I'm trying this:

{exp:channel:categories channel="events"}
{exp:low_events:entries channel="events" category="{category_id}" show_passed="no" limit="1"}
{if no_results}

But I think the {if no_results} is getting confused because of the outer loop. Any ideas on how to do this, or a better way to do this?
1 person has
this question