You could have used SC_Polygon.isPolygon()