Recognizing function as variable value