Added isCountry() function to check for valid country codes