Check whether the model is already in the results.
The node to check.
The list of current optimal nodes.
Whether the node is in the results or not.