Sanity check (prevent call array_fill if an array is empty)

Missed commit from previous pull request - if there are empty directory, we can have a call like array_fill(0,0,'?') @ FileManager::prop and an exception. Sanity check required.