Fixed iteration. Using underscore to check if nodes in table.