Checking the internet availability before connecting to API