Style violation
Forgot an :else clause
DRY
Friendlier way to compute writes