where('customer_contact_id', $contactId)->exists(); } public function isBillingUnitInUse(int $billingUnitId): bool { return DB::table('customer_jobs')->where('billing_unit_id', $billingUnitId)->exists(); } }