In this example I would probably go with: func third( array: [String]) String? { guard array.count 3 else { return nil } return array[2] } And checking many examples of chatGPT responses for code problems, it wont g