Detect whether element has attributes.