What is the purpose of this? Item keys don't have to be numeric, actually I don't get the reason for using foreach here.