private function decodeFileContent($file, $json = false) { if ($json) { return json_decode(base64_decode($file['content']), true); } return base64_decode($file['content']); }