Given the function accepts a boolean, we don't need to use an if statement here and repeat ourselves.