The ternary check needed to be against false instead of null. Using first method from spot2 returns boolean on no results intead of null
Move querystring into the querystring file since talk.js is used more often than sorting