title: Check if numpy array is in list of numpy arrays
body: <p>I have a list of numpy arrays and a single numpy array. I want to check if that single array is a member of the list.</p>
  
  <p>I suppose there exist a method and I haven't searched properly... This is what I came up with:</p>
  
  <pre><code>def inList(array, list):
      for element in list:
          if np.array_equal(element, array):
              return True
      return False
  </code></pre>
  
  <p>Is this implementation correct? Is there any ready function for this?</p>