Stop splitting if all cases belong to same class