matchesSafely