function hasMarker(connection, markerType) {
  return connection.marker && connection.marker[ markerType.split('-').pop() ];
}
Check wether given connection has marker of given type.

@param {Connection} connection
@param {string} markerType

@return {boolean}