protected function isEmptyRow($rowData, $lastReadCellValue) { return count($rowData) === 0 && (!isset($lastReadCellValue) || trim($lastReadCellValue) === ''); }