refactor valid? method
Merge pull request #25 from arusa/master

blank? is shorter