Check if the connection is available.