This can be ``if`` instead of ``elseif`` as the previous ``if`` block throws an exception