`if (!NIL_P(rb_backend))` should be good enough.