code: def validate(value):
          
          if not helpers.has_len(value):
              return False
  
          return COUNTRIES.has_key(str(value).lower())
docs: checks if given value is a valid country codes
  
          @param string value
          @return bool