you should be able to say `if f:` and in fact i'm not sure what happens when you try to cast a function pointer to `long`