title: How to check if a collection exists in Mongodb native nodejs driver?
body: <p>I need to check if a collection exists on a certain database and create it if it doesn't. I know that </p>
  
  <pre><code>db.createCollection(collName, {strict:true}, function(error, collection))
  </code></pre>
  
  <p>checks for existance of collection <code>collName</code> before creating it and sets <code>error</code> object. but I need an independent function to check that.</p>