check schema installation before using it

check schema installation before using it, because the schema runtime dependency