For each now works with arrays