static bool checkType(String key, Type type) { Type itemType = getType(key); return itemType == type || itemType == Null; }