r22500: there's a better way to find out if there are any children