function validateArray(driver, arrayName) {
  const arr = driver[arrayName];
  if (!Array.isArray(arr)) {
    throw new Error(`${driver.id} missing ${arrayName} array`);
  }
}
Validate that the driver implementation has an array by name provided
@param {object} driver
@param {string} arrayName