I would set this to: `return base64_decode($file['content']) ?: null;` as in rare cases of failture `base64_decode()` will return `false`, yet `null` is IMO more proper here.