isELeg check vector added. Imported from master.