I\'m trying to type a function that either accepts a string or string[] and returns either a bool or bool[] respectively. I\'ve tried both using generics types and overload but