PMC: added isinstance test