protected function doesNeedDataForNextRowToBeProcessed() { $hasReadAtLeastOneRow = $this->lastRowIndexProcessed !== 0; return !$hasReadAtLeastOneRow || !$this->shouldPreserveEmptyRows || $this->lastRowIndexProcessed < $this->nextRowIndexToBeProcessed; }