```scala
groupsQueue match {
  case _ :: Nil | Nil => groupsQueue = Nil ; loadCache()
  case _ :: nextValues => groupsQueue = nextValues
  case Nil => loadCache()
}
```