How to check if a collection already exists in ArangoDB
<p>Say I have a collection <code>Col1</code> that already exists in my database. So, doing something like:</p>

<pre><code>var col = db.collection('Col1');
col.save({"name":"something"});
</code></pre>

<p>will work perfectly fine. </p>

<p>But if a collection <code>Col2</code> that doesn't already exist in my database is tried with the same thing i.e </p>

<pre><code>var col = db.collection('Col2');
col.save({"name":"something"})
</code></pre>

<p>will work perfectly fine as well. Only that it doesn't exist and will be not shown in my database. Had it thrown some error or stuffs I could have used <code>try</code> and <code>catch</code> statements for result. But since that is off the plate, how do I know if a collection already exists ?</p>