Как проверить, существует ли атрибут данных в jQuery
if ($("#dataTable").data('timer')) {
...
}
Sikadner
if ($("#dataTable").data('timer')) {
...
}