Check if DOM Element exists automatically before appending in JQuery
<p>Basically, I want a check to run every time I append or prepend to the DOM that the element I am putting in does not exist. I am making sophisticated applications and on occasion have made duplicate elements causing events to not trigger properly.</p>

<p>I don't want to have to run this check manually each time I change the DOM, I would like it to be ran automatically when the prepend, or append functions are called. Is there an event I could listen for when a function is called?</p>

<p>I wouldn't use this check when the application is released because I realize that it could severely hamper performance, but during development it would be very valuable.  </p>
