Check if the given country code is valid.