Checking for key existence in Swift dictionary and getting any value
Hi! I started learning Swift and encountered a problem when working with dictionaries. I need to check if the dictionary contains a specific key, and if so — get one of the values (any, order doesn't matter). \n\nHere's an example of my code:\n\n```swift\nvar fruits = ["apple": "red", "banana": "yellow", "grape": "purple"]\nlet searchKey = "banana"\n\n// Trying to check for key existence\nif fruits[searchKey] != nil {\n print("Key found!")\n // How to get any value?\n}\n```\n\nI know I can use `if let` for optional binding, but I need exactly to check for key existence and then get a value without binding to a specific key. \n\nI tried this:\n\n```swift\nif fruits.keys.contains(searchKey) {\n print("Key exists!")\n // Now I want to get any element\n```