Helper method for detecting if a matcher exists