In my scripts I usually have a first section that defines a collection and then populates it, followed by a second section with the queries.
Of course if run this again it will throw an error when attempting to create the collection.
What is the correct Python V4 way of finding if collection exists and/or if it has objects inside it, so that I could skip the creation section and go directly to the queries?
Tried an horrible shortcut by deleting it with
since my learning collections are small, but of course if this was a real project with many objects this would be a waste.