if (array != nil && ![array isKindOfClass:[NSNull class]] && array.count != 0)if(![string isKindOfClass:[NSNull class]])