getBeforeParenthesisMaybe = str =>
  hasParenthesis(str) ? str.substring(0, str.indexOf('(')) : str
Get substring before first parenthesis in a string
@param {String} str A text string
@returns {String} The substring if the provided string has a parenthesis. Otherwise the string.