If output of prior node returns value then node1 to run if no values returns then node2 to run

The compare datasets node is made for this kind of use case, and might be a nice way of simplifying your workflow and avoiding these problems.

This post has an example of how you might build a workflow around it. You’d just need to swap the Google Calendar nodes for database nodes.