/** * @return string[][] * @throws IoReadException */ private function selectFromStorage() { if (!$this->fs->exists($this->fsPath)) { return []; } $processes = []; $data = json_decode($this->fs->read($this->fsPath), true); foreach ($data as $alias => $record) { if ($this->system->existsPid($record['pid'])) { $processes[$alias] = ['pid' => $record['pid'], 'name' => $record['name'], 'verified' => false]; } } return $processes; }