Checking against repeated attributes and values