fun checkIsConnected(context: Context): Boolean
Checks connectivity.
context - the context object.
context