check network availability