What if you had 1 if block for this, instead of 3?