this also needs a check to see whether results has data
```
if (results.length === 0) {
  return;
}