Like in the classes, the `isinstance` is superfluous here.