The nodes_to_a function should be protected