Use `isinstance`?