Correcting gmExists logic