---
title: isOptional
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlfeaturedescription/isoptional
---

# isOptional

A Boolean value that indicates whether this feature is optional.

## Declaration

```swift
var isOptional: Bool { get }
```

## Discussion

Discussion Optional values can be nil, for models that have inputs related to features being present or not.

## See Also

### Inspecting a feature

- [name](coreml/mlfeaturedescription/name.md)
- [type](coreml/mlfeaturedescription/type.md)
- [MLFeatureType](coreml/mlfeaturetype.md)
