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