Add a global network variable
Currently all our network checks are done independently. The issues with that is any time we want to check the network we have todo a new request or rig something into a function that already does a network check to avoid adding more requests.
The goal is to have a network check that switches a variable to
false so that we can check the variable whenever we need to check the networks connection.