Should use isinstance.