hasNetwork works