`is()` requires the `methods` package; please use `inherits()`