score:0

const checker = 
  document.querySelector('.maybe')?.parentElement?.querySelectorAll('.doesnt-exist?') ?? [] as HTMLInputElement[]

const fields: Element[] = Array.from(checker)

Related Query

More Query from same tag