oh nevermind, maybe you need `else if (typeof proxy !== "string")` just to make sure we're not passing garbage in