Check for items(), not dict instance to allow pseudo dicts.