code: public function next()
      {
          do {
              $this->_key = next($this->_keys);
          } while (!isset($_SESSION[$this->_key]) && $this->_key !== false);
      }
docs: Moves the internal pointer to the next array element.
  This method is required by the interface [[\Iterator]].