[5.0] Removed extra else & elseif statement

Removed extra else & elseif statement.