util to check if URL exists i.e. head gives 200 OK response code