This can be an "else if" of the previous "if" since these are mutually exclusive.  A switch() would work here as well.