Helper function to get list of all collections #43

This closes my issue report and works fine for me.