IsTouching and IsTouchingLayers for Colliders are not defined?

Question says it all.

I’m not looking to use OnTriggerEnter etc as this is a check done at compile time rather than run-time. Any help is appreciated. Thanks

Edit : is it because they are triggers they do not have this function defined?

they are defined. Have no idea why I had the problem in the first place