---
title: "isKeyAvailable(_:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cncontact/iskeyavailable(_:)"
---

# isKeyAvailable(_:)

Determines whether the contact property value for the specified key is fetched.

## Declaration

```swift
func isKeyAvailable(_ key: String) -> Bool
```

## Parameters

- `key`: A contact property key. For a list of valid keys, see doc://com.apple.contacts/documentation/Contacts/contact-keys.

## Return Value

Return Value true if the value is fetched, otherwise false. Discussion The isKeyAvailable(_:) or areKeysAvailable(_:) methods are used when you are not certain of the keys that were fetched. If this method returns false, refetch the contact using the contact identifier and the keys you want to fetch. Accessing a property that was not fetched will throw CNContactPropertyNotFetchedExceptionName.

## See Also

### Checking the Availability of Data

- [areKeysAvailable(_:)](contacts/cncontact/arekeysavailable(_:).md)
