Moved hasConnectivity to the Connection class

#934