Made nil check more ruby-ish