Hmm, we haven't done this before, but now that I look at it, I think it would be better if we had this instead (I made use of `$.isPlainObject` and `$.isArray`):

```javascript
if(!$.isPlainObject(api_result) || api_result.error !== "OK" || !$.isArray(api_result.results) ||
   api_result.results.length === 0) {
    ...
}
```