Fix crash when response is empty array