Nifty retreive all element IDs

Hey, I was wondering if it’s possible to retrieve all element IDs from nifty. I’m adding and removing buttons like crazy, so I want a quick and easy way to check for conflicting element IDs before adding more objects.

Thanks for any input!