You just need to make a check if bool is equal to true or not. No need to specify an array with true and false and then check in it.
You should directly use the == or === (strict type check is even better) operator to check if bool is true or false.
Remove || false from the condition. It should return true only if bool === true || bool === false. Else if bool is neither true nor false, it should return false. So after the if part, you need an else part which returns false. Coz both these are mutually exclusive.
What the question means is to check a value isa boolean primitive which contains “true” and “false”. if I remove || false, it turns out “false” where should be “true”. I hope I’ve made me clear.