Perchè metti il foreach dentro all'array?