Functions Learning Mode

What is the best way to test if $param is an anonymous function in a method?