index.js
function () {
  var deferred = Q.defer();
  fs.exists(settings.SPLASH_FILE, function (exists) {
    if (exists) {
      display.success(settings.SPLASH_FILE + ' exists');
      deferred.resolve();
    } else {
      display.error(settings.SPLASH_FILE + ' does not exist');
      deferred.reject();
    }
  });
  return deferred.promise;
}
function () {
  var deferred = Q.defer();
  fs.exists(settings.SPLASH_FILE, function (exists) {
    if (exists) {
      display.success(settings.SPLASH_FILE + ' exists');
      deferred.resolve();
    } else {
      display.error(settings.SPLASH_FILE + ' does not exist');
      deferred.reject();
    }
  });
  return deferred.promise;
}
function ( ) { var deferred = Q . defer ( ) ; fs . exists ( settings . SPLASH_FILE , function ( exists ) { if ( exists ) { display . success ( settings . SPLASH_FILE + ' exists' ) ; deferred . resolve ( ) ; } else { display . error ( settings . SPLASH_FILE + ' does not exist' ) ; deferred . reject ( ) ; } } ) ; return deferred . promise ; }
Checks if a valid splash file exists

@return {Promise} resolves if exists, rejects otherwise
Checks if a valid splash file exists