I have a situation where I need to insert a div once in a block via jQuery, is there any function already defined that guarantees that this block will be inserted only once? Without me having to check with if
if (!jQuery('.product').parents('.product-info').has('.quickreview').length {
jQuery('.product').parents('.product-info').prepend("<div class="quickreview"></div>");
}