check the url for null (not undefined)