Why change this from foreach?