Another sanity check in case if a directory is empty
Merge pull request #166 from mmelnyk/master

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