refactor - Ruby return conventions