code: protected function pathExtract(): array
      {
          $regExp = [];
          $path = $this->path;
  
          if (\is_array($this->path)) {
              $regExp = \array_pop($this->path);
              $path = \array_pop($this->path);
          }
  
          return [$path, $regExp];
      }
docs: Returns an array of two elements.
  
  The first parameter is path,
  the second is an array of regular expressions.
  
  @return array