Well if we want to be more strict, I should probably just try to parse the data as json, as that's really what we're interested in.   I can update it to try a json.loads and verify it's a dict type.