Enabled the optimizer to check for node's presence.