I think compound `unless` is a bit confusing.  Might be worth refactoring this to an `if` (and making it multiline).