Fix references to $form->hasChildren() and $form->getChildren()