if (config && config.alternate && !Array.isArray(config.alternate)) {
    throw { message: `Config's alternate option should be an array` };
  }