Revised checks for boolean arguments so that JSHint doesn't complain