document why we check for a boolean JS object true or false