Added hasSchema method