check if getGrammer exists