Do we always get an object here or can `api_result` be `undefined`?  Maybe we can add `!$.isPlainObject(api_result)` or `!api_result` if not.