Cómo verificar si existe el atributo de datos en jQuery

if ($("#dataTable").data('timer')) {
  ...
}
Sikadner