public function isAllowed($exception)
    {
        if (empty($exception) || !$exception instanceof \Exception) {
            return true;
        }

        if (!empty($this->blacklist)) {
            foreach ($this->blacklist as $excType) {
                if (is_a($exception, $excType, true)) {
                    return false;
                }
            }
        }

        return true;
    }