How can I make a div visible or invisible based on a boolean value?

Shape Image One