no need to use ``elseif``. ``if`` is enough as you throw an exception in the previous ``if``