# isProgramEnabled()

### Function isProgramEnabled()

{% code title="StandardRewards.sol" %}

```javascript
function _isProgramEnabled(ProgramData memory p) private pure returns (bool)
```

{% endcode %}

This function is used to check if a specific rewards program exists.

{% hint style="info" %}
If a rewards program is enabled, it does NOT mean that it's currently active.&#x20;

To check if a rewards program is currently active, use [isProgramActive()](/developer-guides/read-functions/rewards/standard-rewards/isprogramactive.md).
{% endhint %}

### Function Arguments

| Name | Type    | Description                    |
| ---- | ------- | ------------------------------ |
| id   | uint256 | The ID of the rewards program. |

### Return Variables

This function returns a boolean indicating if a rewards program with the indicated ID has been enabled.&#x20;

| Variable Type | Returns                                                                                                           |
| ------------- | ----------------------------------------------------------------------------------------------------------------- |
| bool          | <p><strong>True:</strong> Rewards program exists.<br><strong>False:</strong> Rewards program does not exist. </p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/isprogramenabled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
