use truthiness refactoring