Mar-08-2021, 06:28 AM
Given that the function returns
True
in some cases, it should be obvious that it would return False
in others (and really if a function is called "is something", you'd expect it to return a Boolean. Throwing an exception in the false case seems like bad design to me, as it's confusing for the caller.