def get_lax(coll, path, default=None):
    """Returns a value at path in the given nested collection.
       Does not raise on a wrong collection type along the way, but removes default.
    """
    for key in path:
        try:
            coll = coll[key]
        except (KeyError, IndexError, TypeError):
            return default
    return coll
Returns a value at path in the given nested collection.
       Does not raise on a wrong collection type along the way, but removes default.
    
funcy/colls.py