判断对象是否为空
/// --------判断id是为空
static inline BOOL IsEmpty(id thing) {
return thing == nil || [thing isEqual:[NSNull null]] ||
([thing respondsToSelector:@selector(length)] && [(NSData *)thing length] == 0) ||
([thing respondsToSelector:@selector(count)] && [(NSArray *)thing count] == 0);
}