Fixed Exception in multiIf Function for Empty Arrays or Strings

Fixed an exception in the multiIf function when using empty arrays or strings.