code: function fileExists(file) {
      var fileExists = true;
  
      try {
          fs.statSync(file, function(err, stat) {
              if (err == null) {
                  fileExists = true;
              } else {
                  fileExists = false;
              }
          });
      } catch (e) {
          fileExists = false;
      }
  
      return fileExists;
  }
docs: Indicates if a given file exists or not
  @param {String} file
  @return {boolean}