check if on guest page before running guest ajax call