One problem is that the lua code is fairly non-linear, with every node basically
acting like a goto statement.
The safest way would be to check every node independent of every other node, but
this would mean most nodes would be tested with null variables... |