Add basic grid validity check