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

# contains(_:)

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

## Declaration

```swift
func contains(_ entity: Entity) -> Bool
```

## Return Value

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

## Discussion

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