Update set.erl

Make check_attribute return true if all attributes are the same