V3

Please use `typeof locationDict !== "undefined"` instead of just `locationDict`