Add a filter to the has_fee function. Fixes #117. See #89.