Replace int with mrb_bool in local_var_p func