It feels like I just invented the wheel.
Returning an array of arrays should have been my next invention.