`if(foo is () -> Any?)` might do it
# getting-started
d
if(foo is () -> Any?)
might do it