A Boolean value indicating whether the collection is empty.
- macOS 10.14+
- Xcode 10.0+
- Create ML
When you need to check whether your collection is empty, use the
is property instead of checking that the
count property is equal to zero. For collections that don’t conform to
Random, accessing the
count property iterates through the elements of the collection.