This doesn't match the different return types. We are returning Array or Object in different cases.