`Array.flatten` raises the appropriate error, which is why I call it and then throw away the result. I should probably update the comment if we're going to keep it like this.