Simplified check for duplicate attribute in parser