title: How to identify plugin (croppie or any other) initialized?
body: <p>I use <a href="https://github.com/Foliotek/Croppie" rel="nofollow noreferrer">croppie</a> for editing pictures before uploading. The task is to destroy and init again this plugin without reloading the page.</p>
  
  <p>So what I've already had:</p>
  
  <pre><code>$('#someID').croppie({
     viewport: {
        width: 128,
        height: 128
     }
  });
  $('#someID').croppie('bind', {
     url: 'some base64 encoded image'
  });
  </code></pre>
  
  <p>After some operations - I hide the plugin:</p>
  
  <pre><code>$('#someID').toggle();
  $('#someID').croppie('bind');
  </code></pre>
  
  <p>After all there are cases when I need <a href="https://github.com/Foliotek/Croppie" rel="nofollow noreferrer">croppie</a> again and first part of js code works again, so I have in console:</p>
  
  <pre><code>croppie.min.js:1 Uncaught Error: Croppie: Can't initialize croppie more than once
  </code></pre>
  
  <p>And obviously I just hafta check initialized plugin for current element now or not. What I found:</p>
  
  <pre><code>// it supposed to be the answer, however it doesn't work correctly for me.    
  if (!jQuery().fn.croppie) {
  
         $('#someID').croppie({
             viewport: {
                  width: 128,
                  height: 128
             }
         });
  
      }
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/30353415/function-to-check-if-jquery-plugins-are-already-initialized">this answer</a> - and it always <code>true</code> ('cause of it's included library and it returns function) and I can't check this way;
  <a href="https://stackoverflow.com/questions/400916/how-can-i-check-if-a-jquery-plugin-is-loaded">this one</a> the same issue.</p>
  
  <p>So, how to make sure that plugin initialized now or not?</p>
  
  <p>P.S. It could be croppie or any other plugin. Thank you!</p>