change boolean evaluation -- `not ret` can lead to ValueError when ret is populated
change boolean evaluation -- `not ret` can lead to ValueError when ret is populated

cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy