Code:
if (#hasability[cWildEmp] <> 0) then
do stuff...
end
When searching for how to check for various specials, the best place to look is for feats. Open a portfolio and type in "requires Wild Empathy" or whatever you require, and then open that feat in the editor.