public function createIfNotExists($document, $options = null)
    {
        $this->assertProperties($document, ['_id', '_type'], 'createIfNotExists');
        return $this->createDocument($document, 'createIfNotExists', $options);
    }