Checks whether a connection is open or not.
a Connection object.
true if the connection is open, false if it's not.