def has_value(key):
 return (True if salt.utils.traverse_dict_and_list(__grains__, key, False) else False)

def has_value ( key ) : return ( True if salt . utils . traverse_dict_and_list ( __grains__ , key , False ) else False )
determine whether a named value exists in the grains dictionary .