Can't we just check `url` instead of `url.length`?