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