Check if prompts response is a function.