Swift Out of Bound Elelennt
extension Collection {
subscript(safe index: Index) -> Element? {
return indices.contains(index) ? self[index] : nil
}
}
Healthy Hippopotamus