check if collection already exists (fixes #1)
correct indentation
Merge pull request #2 from ecwyne/patch-1

check if collection already exists (fixes #1)