Do not use == to compare for chagned values in setValue

As discussed, rather use the 'is' operator.