add empty array argument
Merge pull request #6 from darkv/master

exit function throws error