Never mind. I didn't see the conditions comes from the foreach.