def ds_IsEmpty(ds):
    """Check to see if dataset is empty after warp
    """
    out = False
    b = ds.GetRasterBand(1)
    try:
        mm = b.ComputeRasterMinMax()
        if mm[0] == mm[1]:
            ndv = b.GetNoDataValue()
            if ndv is None:
                out = True
            elif mm[0] == ndv:
                out = True
    except Exception:
        out = True
    return out
