I haven't reached a point in the code where this is called but since `leftIsOutside` is passed here why does the return value depend on it? Can't you just return `array`?