Should use ``isinstance`` check.