Pages layouts improvements
Check whether setting isValid before converting toBool