check for NSDictionary, not Hash