would an `isinstance` be enough here?