Replace ga->ga_len > 0 checks with !GA_EMPTY(ga)