Fix TreeNodeIterator::isEmpty()

This commit is contained in:
Eric Lippmann 2016-03-30 15:27:34 +02:00
parent 528be1ee79
commit a5119a7a2e

View File

@ -92,6 +92,6 @@ class TreeNodeIterator implements RecursiveIterator
*/ */
public function isEmpty() public function isEmpty()
{ {
return empty($this->children); return ! $this->children->count();
} }
} }