code: private function findFile($uriPath)
      {
          return array_reduce($this->paths, function ($file, $path) use ($uriPath) {
              if (false !== $file) {
                  return $file;
              }
  
              $file = $path . $uriPath;
              if (is_file($file) && is_readable($file)) {
                  return $file;
              }
  
              return false;
          }, false);
      }
docs: Finds the file from the request's uri path in the provided paths.
  
  @param string $uriPath the request uri path
  @return boolean|string false if no file is found; the full file path if file is found