I believe that once `i` is renamed to `nodeID` that the second condition can reduce to:

     nodeID != navObject.ID