Use === to know whether the object is NilClass or not

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