You should use the `:` option of rb_scan_args here. That'll allow you to remove the `T_HASH` typecheck right below.