What is problem here?

when I click on circle , it give me this error?
note:: every (lovely day) is article .

function done() {

  const spans = document.querySelectorAll('article label span.circle ');


  spans.forEach((span) => {

    span.addEventListener('click', (e) => {

      if (!e.target.parentNode.firstElementChild.checked === true) {


        console.log('checked');
       // give me here error 
        console.log(e.currentTarget.parentNode.parentNode.contains('itm'));


      } else {

        console.log('remove checked');

    

      }

    });


  });

}

done();

I solved but there is a bunch of bugs after that hhh