SyntaxFix
Write A Post
Hire A Developer
Questions
You got an answer but in your case you can use
return empty($input);
or
return is_string($input);