private function preparePaths($path) { if (!is_dir($path)) { return mkdir($path, 0777, true); } return false; }