$files = scandir('/some/random/folder') ?: [];