Help for this page
if( exists $xml->{$usernumber}->{"user"}->{"firstname"} ) {...}
if( ref eq 'HASH' and exists $xml->{$usernumber}->{"user"}->{"firstnam +e"} ) {...}