Let's do `el_visited_nodes = []` on a line by itself so the function doesn't obscure that.