Please use ``if`` instead of ``elseif`` as the previous ``if`` leaves the execution flow by throwing an exception