def find_with(node, path, func):
    """If node.find(path) returns a node n return func(n) else return None.

    """
    n = node.find(path)
    if n is None:
        return None
    else:
        return func(n)