'undefined' indicates a variable which has not been set, 'null' indicates a variable with a value.
The function returns null or a string, it never returns an undefined. All checks should be strict.