def path_list_is_leaf(leaf, pathlist, **kwargs):
    """ 
        from xdict.utils import *
        path_list_is_leaf(['c'],['a','b','c'])
        path_list_is_leaf(['','c'],['a','b','c'])
        path_list_is_leaf([''],['a','b','c'])
        path_list_is_leaf(['c',''],['a','b','c',''])
        path_list_is_leaf([''],['a','b','c',''])
    """
    pks = pathlist
    if pks[-1] == leaf[0]:
        return 1
    else:
        return 0
