Why not put the `base` out of the `foreach` loop?