We should check for the existence of `$loc->country_name` before using it. We could either just exit, or maybe give it a default value.