# 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()](https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/isprogramactive).
{% 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> |
