Reduce conditonal branch for C or mruby proc