Update `Visitable.children` through functions instead of using variable