---
title: isEmpty
framework: swift
role: symbol
role_heading: Instance Property
path: swift/closedrange/isempty
---

# isEmpty

A Boolean value indicating whether the range contains no elements.

## Declaration

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

## Discussion

Discussion Because a closed range cannot represent an empty range, this property is always false.

## See Also

### Inspecting a Range

- [lowerBound](swift/closedrange/lowerbound.md)
- [upperBound](swift/closedrange/upperbound.md)
