Check Duplicated Paths with LoDash (and Angular 2)