this might be consistent with tidyselect and works within groups:
filter(!is.na(c_across(all_of(var_a))))