def is_country_in_list(country, names):
    """Does country have any name from 'names' list among its name/name:en tags
    of boundary/label.
    """
    return any(
                any(
                    country[property].get(name_tag) in names
                        for name_tag in ('name', 'name:en')
                ) for property in ('label', 'boundary') if country[property]
    )