allow null value instead of requiring an empty array
Merge pull request #1281 from aghouseh/env-get-directory-contents-fix-null-array

allow null value instead of requiring an empty array