Checking network availability