Swapped unless/else for if/else; better Ruby style