This is kind of dangerous. If the API returns an array, this will cause a crash. You should probably be wrapping `response` in a type of some kind, or type-checking it before trying to pull something out of it like this.