checkNetworkState
Context Extension to check the internet connection status, this will be checked in the usual way in addition to checking if internet is available in case Wi-Fi is being used or mobile data is being used, depending on the connection status a Boolean will be returned
The ACCESS_NETWORK_STATE permission must be included in the Manifest for this function to be performed correctly