dont try a http request if url is empty