$validCities = array('Stockholm', 'Göteborg');

<!--lame-->
$fromCity = preg_match('/'. implode('|', $validCities) .'/', $driverCity);

return !empty($fromCity);

<!--nice-->
return in_array($driverCity, $validCities);