Script for turning off/on IK PASS in a layer in animator

Hey I need help scripting.
Im trying to turn off Ik Pass on the base layer based on my speed parameter.
Should I use a if Statement? Also I do not know what to reference IK Pass as in the script.

Maybe use another layer above the base with IK pass OFF.