checking for internet connection before requests, able to remove collections