If you used elseif in place of the second statement, your last else would have been false. The last else corresponds with the first if statement.
if () { ... } elseif () { ... } else { ... }