@marcelmoosbrugger: function name indicates a boolean, checkMatches would be a better name