---
title: "contains(_:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/entitycollection/contains(_:)-i6hb"
---

# contains(_:)

Returns a Boolean value that indicates whether the collection contains the specified entity identifier.

## Declaration

```swift
func contains(_ identifier: Entity.ID) -> Bool
```

## Return Value

Return Value true if the identifier is in the collection, or false if it isn’t.

## Discussion

Discussion Parameter: identifier: The identifier to look for in the collection.
