This is pretty hard to read. Reducing the indentation helps a bit:
```
if (NIL_P(rb_options))
        return;
```
Maybe splitting this into a couple inline functions or something? I don't think anything will be reused if this is in several functions, but I don't see another way to make it more readable.