private function removeEmptyRowsFromCollection() { $this->collection = $this->collection->reject(function ($data) { if (empty($data)) { return true; } else { return false; } }); }