There is a missmatch. Try

```if (output.responseList.length > 0 && output.responseList[0].features.length > 0) {```