Move this below the if block and use the `||=` operator. This is Ruby and not C. ;)