You can simply make this one line: `return if poll.nil?`