title: How can I check whether a numpy array is empty or not?
body: <p>How can I check whether a numpy array is empty or not?</p>
  <p>I used the following code, but this fails if the array contains a zero.</p>
  <pre><code>if not self.Definition.all():
  </code></pre>
  <p>Is this the solution?</p>
  <pre><code>if self.Definition == array([]):
  </code></pre>