Robuta

https://www.php.net/manual/zh/recursivecachingiterator.haschildren.php PHP: RecursiveCachingIterator::hasChildren - Manual Check whether the current element of the inner iterator has children phpmanual