carData) !== false; } /** * Get the size in human-readable format. */ public function humanSize(): string { $units = ['B', 'KB', 'MB', 'GB']; $size = $this->size; $unit = 0; while ($size >= 1024 && $unit < count($units) - 1) { $size /= 1024; $unit++; } return round($size, 2).' '.$units[$unit]; } }