Yes, you're right. I thought it's just duplicate code and missed the `elseif`.