Yeah this is ugly. What is the value of $country at the end of this if $session->user is null? Is it null or undef? Is PHP going to change that in PHP 9 because they realise it was a mistake?
Since moving from Australia to Vietnam in 2014, Del has been running training courses in software architecture and technical architecture for the IT industry.