inexpression(x,g) ?



I want to get a yes/no answer to the question:

does the expression g depend explicitly on a variable x.

Is there some built in function for this?

My only approach so far is

elementp( string(x), setify( charlist( string(g) ) ) )

Ted Woollett