can you refactor out this "check geo location" section into a method so that the code is more readable?