rsvg2: add boolean check