Test if value is instance of \Closure