Breaking news: prioritize current-page matches over history matches

So that `.length` doesn't error if the val is, say, undefined. But I'll change to have an `isArray` clause first.