code: function exists(filedir){
      // promise wrapper
      return new Promise(function(resolve){
          // try to stat the file
          _fs.stat(filedir, function(err){
              resolve(!err)
          });
      });
  }
docs: "modern" exists implmentation