src/Items.php
public function next()
    {
        if ($this->getCount() == $this->intCursor) {
            return false;
        }
        // We must advance over the last element.
        $this->intCursor += 1;

        // Check the index again, see #461.
        return ($this->getCount() == $this->intCursor) ? false : $this;
    }
public function next()
    {
        if ($this->getCount() == $this->intCursor) {
            return false;
        }
        // We must advance over the last element.
        $this->intCursor += 1;

        // Check the index again, see #461.
        return ($this->getCount() == $this->intCursor) ? false : $this;
    }
{@inheritdoc}