mruby: reduce assingment in if condition