Changed check for LinePaths, since a path needs to consist of at least two waypoints to work