Get the value first if it's valid.