I think `query` or `sort` may be in depth 1 or 2, however, the probability of having `sort` or `query` key in a document is small.
By the way, in `src/js/map.js` line 6, we already assumed that query doesn't have key `query`.