adding in the option to pass a boolean into conditionals