I realized isvalid could be used to give a boolean that i could determine from instead of having to read the actual value