You wouldn't need to check if `hasAttribute`