private static function constructMongoClient($uri, $options)
    {
        if (isset($uri)) {
            if (isset($options)) {
                return new MongoClient($uri, $options);
            }
            return new MongoClient($uri);
        }
        return new MongoClient();
    }