check if collection already exists (fixes #1)