title: PHP-Mongo check if insert is successful
body: <p>Is there away to check if PHP-Mongo insert is successful?</p>
  
  <p>something like</p>
  
  <pre><code>&lt;?php
  
  if ( $collection-&gt;insert($data) ) {
   //successful
  }
  
  ?&gt;
  </code></pre>