In this case, you may want to check if element exists in current DOM
if you want to check if element exist in DOM tree (is attached to DOM), you can use:
var data = $('#data_1');
if(jQuery.contains(document.documentElement, data[0])){
// #data_1 element attached to DOM
} else {
// is not attached to DOM
}