i think a better way would be `$this->collection->update($query, $query, array('upsert' => true))`