Insted of this, add a second if check after the istype() passes