title: check if jquery ui accordion exists?
body: <p>is there an easy way to tell if a jquery accordion exists on the page...i am trying to dynamically build accordion based on selection that runs through $ajax, reads values from xml, and depending on the xml file selected builds strings the make up the accordion, and finally appends it.</p>
  
  <p>I think that if the accordion already exists on the page, and the user selects another file, I am having trouble destroying the accordion, clearing the html, append the new string, then creating a new accordion...</p>
  
  <p>like </p>
  
  <pre><code>$("#accordion").accordion('destory').html('').append(string).accordion();
  </code></pre>
  
  <p>seems like if there is not already an accordion this idea breaks....thinking maybe i can just check?? thanks for any help to beginner!</p>