Implementing 'if' in Ruby | Hacker News Reader