Moved hasConnectivity to the Connection class