Also would this be better as a match statement? No strong opinion just looked at the Either docs and seems like it might look nicer.