$geo = (new RegularLabs\Library\GeoIp\GeoIp)->get();
$isGermany = $geo->countryCode == 'DE';
$geo = (new RegularLabs\Library\GeoIp\GeoIp)->get();
$isGermany = $geo && isset($geo->countryCode) && $geo->countryCode == 'DE';
$geo = (new RegularLabs\Library\GeoIp\GeoIp)->get();
$isGermany = ($geo->countryCode ?? '') == 'DE';
$rate = match ($geo->countryCode ?? '') {
'AT' => 20,
'DE' => 19,
default => 25,
};