Use `is` instead of `==` when comparing functions