extracted checkNodesForRebalance()