Adds check for path_parts size to avoid offset notice