I am currently using the following (clumsy) pieces of code for determining if a (non-empty) Swift dictionary contains a given key and for obtaining one (any) value from the
Here is what works for me on Swift 3
let _ = (dict[key].map { $0 as? String } ?? "")