BOOL PMFrameCGRectIsNull( CGRect rect ){
return (isinf(rect.origin.x) || isinf(rect.origin.y) ||
isinf(rect.size.width) || isinf(rect.size.height) || isnan(rect.origin.x) || isnan(rect.origin.y) ||
isnan(rect.size.width) || isnan(rect.size.height) || CGRectIsEmpty(rect)) ? 1 : 0;
}