1 verses of the King James Version have both "contended" and "if".
Job 31:13 If I did despise the cause of my manservant or of my maidservant, when they contended with me;
In other translations: WEB ASV Darby Webster