Add introspection helper
Added "is_rpc_method" function for clarity and DRYness