Check for attributes.

Fails on duplicated attribute if amend.