private function ensureIndexes() { if ($this->checkedIndexes) { return; } $this->checkedIndexes = true; if (!$this->isFilesCollectionEmpty()) { return; } $this->ensureFilesIndex(); $this->ensureChunksIndex(); }