alternatively, this could be `isinstance(r_data, dict)`