i would rather use !== -1 case "path/to/../../something" sounds stupid but you never know