final protected function validateBool($value, array $allowed) : bool
    {
        if (true === in_array('bool', $allowed)) {
            if (true === is_bool($value)) {
                return true;
            }
        }

        return false;
    }
final protected function validateBool($value, array $allowed) : bool
    {
        if (true === in_array('bool', $allowed)) {
            if (true === is_bool($value)) {
                return true;
            }
        }

        return false;
    }
final protected function validateBool ( $ value , array $ allowed ) : bool { if ( true === in_array ( 'bool' , $ allowed ) ) { if ( true === is_bool ( $ value ) ) { return true ; } } return false ; }
Validates an bool setting.

@param mixed $value   The value we are validating.
@param array $allowed Which items are allowed.

@throws \InvalidArgumentException If the data is inaccurate/incorrect.
@return bool True if validated, false if not
Validates an bool setting .