I'd be tempted to move this to _after_ `tryStartChild`, just for consistency with the rest of the code (where functions aren't usually defined until after those in which they're used).