Every recognizance to keep the peace shall be conditioned to the effect that the person of whom it is taken shall keep the peace and be of good behavior for such time, not exceeding one year, as the court or justice requiring it may direct; and if such court or justice directs, it may, when taken of a person charged with an offense, be with condition for so keeping the peace and being of good behavior, in addition to the other conditions of his recognizance imposed in accordance with the provisions of article one-c of this chapter.