[BUG #8635] Added "hasData" Method to check for data-* attribute existence