Check network availability.