Check is jQuery loaded

jq
The simplest way to check jQuery library exists and loaded on page is next:

if (window.jQuery) {
  // your jQuery code here...
}

Thanx to http://stackoverflow.com/a/24284903