You don't need the if statement at the end, the ||= will produce the same result.