code: public function next()
      {
          do {
              ++$this->currentColumnIndex;
          } while (($this->onlyExistingCells) && (!$this->worksheet->cellExistsByColumnAndRow($this->currentColumnIndex, $this->rowIndex)) && ($this->currentColumnIndex <= $this->endColumnIndex));
      }
docs: Set the iterator to its next value.