title: Check if jQuery is included in Header (Joomla)
body: <p>Is there a way to check if jQuery is loaded using PHP?</p>
  
  <p>I have two different plugins in Joomla that load the jQuery JS, but when it is included more than once it does not work correctly.</p>
  
  <p>To explain the process a bit more:
  Joomla offers an ability to intercept the HTML source before it is rendered, essentially working on the source code itself.</p>
  
  <p>This is using the function:</p>
  
  <pre><code>onPrepareContent(&amp;$row, &amp;$params, $limitstart)
  </code></pre>
  
  <p>$row is the HTML content of the page that can be parsed.</p>
  
  <p>I was thinking that maybe a preg_match could work but don't have very much experience with it.</p>