UK: check type and not isinstance