def METHOD_NAME(obj):
    """isSolid(obj) ... return True if the object is a valid solid."""
    import Part
    shape = Part.getShape(obj)
    return not shape.isNull() and shape.Volume and shape.isClosed()