public static function validateConditionsConfig(array $json) : void
    {
        foreach ($json as $condition) {
            if (!self::keysExist(['exec'], $condition) || empty($condition['exec'])) {
                throw new \RuntimeException('Config error: \'exec\' is required for conditions');
            }
            if (!empty($condition['args']) && !is_array($condition['args'])) {
                throw new \RuntimeException('Config error: invalid \'args\' configuration');
            }
        }
    }