If there is no child there is nothing to tell us that this was the workInProgress branch. Therefore, we need to look at the other branch if there are children in it to see if *that* was the workInProgress branch.