  }

  const allSourcesExist = source.every(existsSync);

  if (!allSourcesExist) {
    logError('Not all input directories or files exist');
    return false;
  }

  const validSource = isValidSource(...source);