minor: IMHO this is more readable with  an `elsif`