I want to check first whether a collection exists or not. how can i do this? db.firstcollection.find({$exists:false}) - doesn't seem to work.