static Rect nullIfEmptyRect(Rect r) { ret rectEmpty(r) ? null : r; }