Check for index 0 when the string is matched +  render an empty template when there's no term found