Improved the helper isBodyEqual to verify if the response is an array.