***

title: hasSection
slug: /reference/typescript/agents/configuration/prompt-manager/has-section
description: Check whether a POM section with the given title exists.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Check whether a POM section with the given title exists.

## **Parameters**

<ParamField path="title" type="string" required={true} toc={true}>
  The section heading to look for.
</ParamField>

## **Returns**

`boolean` -- `true` if the section exists.

## **Example**

```typescript {6}
import { PromptManager } from '@signalwire/sdk';

const pm = new PromptManager();
pm.addSection('Role', { body: 'You are a support agent.' });

console.log(pm.hasSection('Role'));   // true
console.log(pm.hasSection('Rules'));  // false
```