[BUG #7501] Implemented the performance improvement, but it need a minor refactoring. The VirtualTree and the VirtualTreeItem has a implementation for hasChildren.
Minor typo fix.