def checkEmptyMask(arr):
    """
    Checks if any patches are without masks, previously used to discard patches with no mask.
    returns list of indexes where mask is all zeros
    """

    out = []
    for i in range(arr.shape[0]):
        if not arr[i].any():
            out.append(i)

    return out