improve hasKnownScheme according to @jcsahnwaldt suggestion