$email]); echo json_encode(['found' => (bool) $result, 'validDomain' => $emailCheck->isEmailDomainValid($email)]); exit; case 'urgent_cargus_cities': if (!($county = getVal('county'))) { exit; } $urgentCargus = Delivery::getClass('UrgentCargus'); echo json_encode($urgentCargus->getCities($county)); exit; case 'fan_courier_cities': if (!($county = getVal('county'))) { exit; } $fanCourier = Delivery::getClass('FANCourier'); echo json_encode($fanCourier->getCities($county)); exit; default: header('HTTP/1.0 404 Not Found'); exit; }