You can use ```foo(input || "")```, a bit shorter :)