Example:


$country = $session?->user?->getAddress($session?->format)?->country;

  • If getAddress() returns NULL, $country is NULL