['product', 'products'], 'clients' => ['client', 'clients'], 'recurring' => ['recurring invoice', 'recurring invoices']] as $key => [$one, $many]) { if ($usage[$key]) { $uses[] = number_format($usage[$key]) . ' ' . ($usage[$key] === 1 ? $one : $many); } } if ($drafts) { $uses[] = $drafts . ' draft ' . ($drafts === 1 ? 'invoice or quote' : 'invoices and quotes'); } $others = billingTaxes(); unset($others[$tax_id]); ?>