As per Kaze's comments below, please handle this better, avoid istype() checks - remember you can override procs in corgi/cyberian if needed.