@will-moore Generally agreed, if you don't know though if you are looking at a string or a dictionary, the in keyword may not do what you want, since it works on both types.  If there is no doubt here that it's a dict, then use the in keyword, but I think @aleksandra-tarkowska also wants to support strings.