We don't have direct support for this in our API. The next best thing you can do is to perform a GET on the collection and count the number of objects that are returned.
Edited: my previous answer was incorrect.
about 6 years ago
Thanks Morgan. Since its from within BL I have access to modules.collectionAccess.collection("collectionName"). Is there a way to use this object to figure if the collection pre exists. I guess using count() would be one option but is there a better way via collectionAccess module?