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

# hasSection

> Check whether a POM section with the given title exists.

Check whether a POM section with the given title exists.

## **Parameters**

**`title`** `string` — required

The section heading to look for.

---

## **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
```