return an empty array on api request failure