Should not this check be after the argument error?