Less of a programming question, more of a game logic question.
On Next, we go through all the children and see if there are any player responses, if so we list them in the choose UI. Else we get all the AI children and pick one. But you first filter for just AI children (even though we would never get here if there was even 1 player child).
I guess this implies that there could be both types of children for any dialogue node. What is a game play situation where there could be both types of children?