Use `isinstance`