If $url exists fix