Just for safety let's check before the assignment below `originalSetting` is not null and is an array please.