check if a numpy array is a numpy masked array
<p>As output of a script, I have <code>numpy masked array</code> and standard <code>numpy array</code>. How do I easily check while running the script if an array is a masked (has <code>data</code>, <code>mask</code> attributes) one or not?</p>