title: What is the best way to test if a Magnific Popup is currently "open"
body: <p>What is the best way to test if a Magnific Popup is currently "open"?</p>
  
  <p>Will a check for the existence of some div be future proof?</p>
  
  <p>For example, if I use:</p>
  
  <pre><code>if ($(".mfp-ready").length &gt; 0)
    ...
  </code></pre>
  
  <p>I looked for the equivilent of an isopen property in the api documentation but found nothing like that</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Following Dmitry's answer, I examined the instance object and found the following properties that may prove useful to others:</p>
  
  <pre><code>isAndroid
  isIE7
  isIE8
  isIOS
  isLowIE
  </code></pre>