protected function handleText()
    {
        $content = $this->getContent();
        foreach ($this->rules['text'] as $rule) {
            if ($rule['type'] == 'is' && 0 === strcasecmp($content, $rule['keyword'])) {
                return $this->handle($rule['fn']);
            }

            if ($rule['type'] == 'has' && false !== mb_stripos($content, $rule['keyword'])) {
                return $this->handle($rule['fn']);
            }

            if ($rule['type'] == 'startsWith' && 0 === mb_stripos($content, $rule['keyword'])) {
                return $this->handle($rule['fn']);
            }

            if ($rule['type'] == 'match' && preg_match($rule['keyword'], $content)) {
                return $this->handle($rule['fn']);
            }
        }
        return false;
    }