Return type of the partial function can be `Boolean`, same as above.