set attribute value null if no value for the attribute in the array, which returned the method onSet