code: public function grantsAccess(): bool
      {
          $content = array_filter(file((string) $this->file));
  
          foreach ($content as $line) {
              if ($this->hasRequireGranted($line)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Checks whether the .htaccess file grants access via HTTP.