check if a variable is of function