check url is nil