isNetworkAvailable added

Added function to check if an internet connection is available. "isNetworkAvailable:Bool()" will return true or false.