function existsAsync(filePath) {
  let fulfill = null;
  const promise = new Promise((x) => {
    fulfill = x;
  });
  access(filePath, (err) => fulfill(!err));
  return promise;
}
This module is imported from Puppeteer(https://github.com/GoogleChrome/puppeteer)
Few modifications are done on the file.