Check if argument is one of the correlation structures used in brms.
is.cor_brms(x) is.cor_arma(x) is.cor_sar(x) is.cor_car(x) is.cor_fixed(x) is.cor_bsts(x)
x
An R object.