isNetworkOffline

Checks if the network is offline for the given context.

Return

True if the context is null or there is no internet, false otherwise.