1 verses of the American Standard Version have both "convicted" and "if".
James 2:9 but if ye have respect of persons, ye commit sin, being convicted by the law as transgressors.
In other translations: WEB YLT Darby Webster