(PHP 5 >= 5.1.0, PHP 7, PHP 8)
RecursiveCachingIterator::hasChildren — Check whether the current element of the inner iterator has children
Checks whether the current element has children. The inner iterator is asked when the iterator moves to the element, so this method returns the result that was stored at that time.
This function has no parameters.