protected function _has_group($group)
{
if (!$this->enabled) {
return false;
}
$ghash = $this->get_group_hash($group);
$valid = true;
$now = time();
foreach ($this->cache_files[$ghash] as $hash => $record) {
if (!file_exists($record['file']) || $record['expires'] <= $now) {
$valid = false;
break;
}
}
return isset($this->cache_files[$ghash]) && count($this->cache_files[$ghash]) > 1 && $valid;
}