Improved usability by making the handler a simple Func<bool>