(New Input System) Check if .performed == null

Is there any way to see if .performed has any methods in its invocation list? I want to do a simple check to see if there’s anything in it and add only if it’s empty.

if( _playerinputActions.Player.LMB.performed == null)
{
_playerinputActions.Player.LMB.performed += DoSomething;
}

This doesn’t work. I’m only starting to get into the new Input System, so there’s probably something I’m missing here.

Right now, not really, one way to do it would be to have a boolean on your side and only add callback if bool is false and then set bool to true.

I see. I looked at the input system, and the delegate attached to the event is private, so I can’t access it. Thanks anyway, I did it the way you described.