CHANGED foreach values and if statement