checking for presence of data attribs