def validate(value):
        """
        checks if given value is a valid country codes

        @param string value
        @return bool
        """
        if not helpers.has_len(value):
            return False

        return COUNTRIES.has_key(str(value).lower())