checking url is set instead of keeping a parsed request var