Ah, good point. I agree that array_map and anon functions would be a better route to take. I'll tackle that in the next commit.