How to check if an NSDictionary or NSMutableDictionary contains a key? September 16, 2022 by Tarik objectForKey will return nil if a key doesn’t exist.