<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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())