I want a navigation that checks if there are entries already created for each folder, and only display links for those folders that have entries in them.

How do I do that?

Thanks :)