function fileExists(id, gfs) {
    return new Promise(function (resolve, reject) {
      gfs.exist({_id: id}, function (err, exists) {
        if (err) return reject(err);

        resolve(exists);
      });
    });
  }
Checks if a file exists in the db with the
specified file name

@param id MongoDB ObjectId
@param gfs GridFS