[BUGFIX] Check for valid path array before iterating
Merge pull request #61 from NamelessCoder/checkarray

[BUGFIX] Check for valid path array before iterating