no empty lines
`||=` is handy
[^\s] -> \S
refactoring w/ performance improvement
refactoring: use guard