code: function fileExists(filename) {
      var d = Promise.defer();
  
      fs.exists(filename, function(exists) {
          d.resolve(exists);
      });
  
      return d.promise;
  }
docs: Return a promise resolved with a boolean