private function readFileAsArray(Gpf_Io_File $file) { for ($i = 1; $i <= 5; $i++) { $lines = $file->readAsArray(); if ($this->isFileContentOk($lines)) { return $lines; } usleep(round(rand(0, 100) * 1000)); } throw new Gpf_Exception('Could not read settings file: ' . ' ' . $this->settingsFile); }