Cleanup - Fix indentation.
Bugfix  - Handle empty arrays.
Merge pull request #2 from conleel/master

handle empty arrays