So far, we have always checked whether inserts worked.

Ignore errors:

<?php
$m 
= new MongoClient('mongodb://localhost/?w=0');
$c $m->demo->talks;

$c->insert( [ '_id' => 'derickr' ] );
$c->insert( [ '_id' => 'derickr' ] );
?>
Output