updated Either per Stackoverflow post