SyntaxFix
Write A Post
Hire A Developer
Questions
You could wrap your return value in the Boolean function
Boolean([return value])
That'll ensure all falsey values are false and truthy statements are true.