simplify webgl check logic