checking if a value is true or false