why is state a boolean?