Is there a Pythonic way to check if a list (a nested list with elements & lists) is essentially empty? What I mean by
def isEmpty(a): return all([isEmpty(b) for b in a]) if isinstance(a, list) else False
Simply.