src/Primitive/Support/Traits/RetrievableTrait.php
public function isBoolable($value, $strict = false)
    {
        if ( ! $this->getBoolable($strict))
        {
            return $this->isIntegerable($value);
        }

        return is_bool($value) || $value instanceof BooleanContract;
    }
public function isBoolable($value, $strict = false)
    {
        if ( ! $this->getBoolable($strict))
        {
            return $this->isIntegerable($value);
        }

        return is_bool($value) || $value instanceof BooleanContract;
    }
Check if $value is Boolable.
Second argument can be specified to check strict.

@param mixed $value
@param bool  $strict
@return bool