# $taxRules->has()

> Checks if the given object or id is in the collection

- Source: `src/Cms/Collection.php#L216` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Collection.php#L216>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$taxRules->has(string|TValue $key): bool
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$key` | `string\|TValue` | `–` |

## Return type

`bool`

## Parent class

`Wagnerwagner\Merx\TaxRules` inherited from `Kirby\Cms\Collection`
