I think I would prefer coercing this into a boolean, and then doing `if upgrade:`