When boolean variable is set to false nothing gets printed to the console