Use == to where the object is nil or not

BasicObject doesn't have `#nil?` method.