jquery prepend item once per div : I have tried searching and can only find half an answer for my issue.

I have a dynamic select function and when a click is performed I want a prepend to happen but only once per div it within.

```
var selGroup = $(".selected-results > .results-group");
      
      if (!$('.selected-results > .results-group > .results-category').length) {
          selGroup.prepend('<li class="results-category" data-class="'+ category +'">'+ category +'</li>');
          return true;
      } else {
      }
```

This so far just adds in the prepend every time. I just cant figure it out.

Any advice is appreciated, thank you