<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNContact/isKeyAvailable(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContact(im)isKeyAvailable:"
  },
  "title" : "isKeyAvailable(_:)"
}
-->

# isKeyAvailable(_:)

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

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

## Parameters

`key`

A contact property key. For a list of valid keys, see [Contact Keys](/documentation/Contacts/contact-keys).

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the value is fetched, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The [`isKeyAvailable(_:)`](/documentation/Contacts/CNContact/isKeyAvailable(_:)) or [`areKeysAvailable(_:)`](/documentation/Contacts/CNContact/areKeysAvailable(_:)) methods are used when you are not certain of the keys that were fetched. If this method returns <doc://com.apple.documentation/documentation/Swift/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`](/documentation/Contacts/CNContactPropertyNotFetchedExceptionName).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)