public static bool IsNullOrEmpty(this Geometry geometry) { if (geometry == null) return true; return geometry.IsEmpty; }