Checks if the given item is matched by the filter or not.
item
a filter
The item to check
true if the filter matches the item