smth.nil? is better then smth == nil