Use set for arrays and update for Objects