See this thread, and the one it links to:
I guess there should be a FAQ on this since it's been asked a bunch of times over the years. (I keep wondering why so many people want to find empty folders. )
Remember to drop GPSoft a feature request if the methods in the linked threads aren't what you want.