Introduce checkValid