# PanelContent

> Applies the fail-open content policy shared by the toolbar chips and the sidebar navigation.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Panel](/docs/extensions/yii3-debug/reference/panel/index.md) › PanelContent

| final class | `Yii3\Debug\Panel\PanelContent` |
| --- | --- |
| Source | [`src/Panel/PanelContent.php`](https://github.com/yii3/debug/blob/main/src/Panel/PanelContent.php#L15) |

Applies the fail-open content policy shared by the toolbar chips and the sidebar navigation.

A panel that throws while deciding is treated as present, so its chip or navigation entry stays discoverable and the
render step can expose the failure.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`isPresent()`](#method-isPresent) static | Returns whether a captured payload holds content worth exposing. | `PanelContent` |

## Method details

### isPresent() <span id="method-isPresent"></span>

```php
public static function isPresent(Yii3\Debug\Panel\ExtensionPanelInterface $panel, array<string, mixed> $payload): bool
```

Returns whether a captured payload holds content worth exposing.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$panel` | [`ExtensionPanelInterface`](/docs/extensions/yii3-debug/reference/panel/extensionpanelinterface/index.md) | Panel presenting the capture. |
| `$payload` | `array<string, mixed>` | Serialized panel payload. |

**Returns**

`bool`: `true` when the panel reports content or fails to decide; `false` otherwise.