func PMFrameCGRectIsNull(rect: CGRect) -> Bool {
return Bool((rect.origin.x.isInfinite || rect.origin.y.isInfinite || rect.size.width.isInfinite || rect.size.height.isInfinite || rect.origin.x.isNaN || rect.origin.y.isNaN || rect.size.width.isNaN || rect.size.height.isNaN || rect.isEmpty()) ? 1 : 0)
}