When doing an if-test on the result of a function which returns a string