refactoring: "!= nil" == ""