check for carousel element before fire off AJAX