It's a bit heavier indeed, but I don't think it's worth it to refactor it into using arrays.