Add check before resetting GITEMAIL var