private function getBadWordsFromArray()
    {
        if (!empty($this->config['bad_words_array']) && is_array($this->config['bad_words_array'])) {
            return $this->config['bad_words_array'];
        }

        throw new \Exception('Source is set to "array" but bad_words_array is either empty or not an array.');
    }