3 ms·periods could be null. So you would need to optional chain the array access also.by leipert 4y agoperiods could be null. So you would need to optional chain the array access also.