I have this array
a = array([1,5,7])
I apply the where function
where(a==8)
What is returned in this case is
(array([], dtype=int64),)
However I would like the code to return the integer "0" whenever the where function returns an empty array. Is that possible?