Probably best to test for nil by using .nil? rather than == nil. Think this is the preferred method.