Como verificar se o atributo de dados existe no jQuery

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