Update set.erl check_attribute

Make check_attribute return true if all attributes are the same