SchedulerEventTable::isSubscribed: Bitrix method

      
<?php 
//  Bitrix\Bizproc\SchedulerEventTable :: isSubscribed()
//  /dist/bitrix/modules/bizproc/lib/schedulerevent.php:84

    
public static function isSubscribed($workflowId$handler$eventModule$eventType$entityId null)
    {
        
$filter = array(
            
'=WORKFLOW_ID' => (string)$workflowId,
            
'=HANDLER' => (string)$handler,
            
'=EVENT_MODULE' => (string)$eventModule,
            
'=EVENT_TYPE' => (string)$eventType
        
);

        if (
$entityId !== null)
            
$filter['=ENTITY_ID'] = (string)$entityId;

        
$row = static::getList(array(
            
'select' => array('ID'),
            
'filter' => $filter
        
))->fetch();

        return (
is_array($row));
    }