I think this check is incorrect. You're comparing the result of a function invocation (`type(c)`) to the built-in function itself (`type`).