fix: check if we actually have a last_arg

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>