do not treat empty array as permission denied
Merge pull request #6 from kkesha/master

do not treat empty array as permission denied