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

# isEmpty

A Boolean value indicating whether the range contains no elements.

## Declaration

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

## Discussion

Discussion An empty Range instance has equal lower and upper bounds. let empty: Range = 10..<10 print(empty.isEmpty) // Prints "true"

## See Also

### Inspecting a Range

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