function findConnection(connections, object) {
  return connections.find(function (element) {
    return ConnectionWrapper.isSameConnection(element, object);
  });
}
check if a given connection object is already part of the connections list given as
 first parameter, the object found is returned or undefined otherwise.
 For comparison of the connection objects the _isSameConnection method is used.

 @param {Array} connections list of connections
 @param {object} object connection object to search in list
 @return {boolean} true if this connection is found.