[BUGFIX] Check for valid path array before iterating