Incompatible with RecursiveIterator

#4517

http://php.net/manual/en/recursiveiterator.haschildren.php
> Returns TRUE if the current entry can be iterated over, otherwise returns FALSE. 
@noopable I think you don't `assert` nothing here. It's looks like wrong for me.
I think you can write a test with call to methods instead use foreach.