I should really have called `return matchesTypes(type)` here...