It might be helpful in some cases to use $countryCode as the key in the output array, Does it make sense for you?