Checks if there is a placeholder param with the given key in the pattern.
bool containsParam(String key) { return _segments .any((element) => element is _PLSegment && element.key == key); }