Check that connection object exists.