test for blank instead of not empty
Revert "don't use and"

This reverts commit f9357738091d2b8a487a628fc7c8d06d886a0f9a.