Use the negation of Ruby's .nil? method instead of != nil.