Fixes "Call to undefined method SplStack::getIterator()"