public function hasTags(array $tags, $matchAll = true)
    {
        $routeTags = $this->getRoute()->getTags();
        $diffCount = count(array_diff($tags, $routeTags));
        $tagsCount = count($tags);

        if ($matchAll) {
            if ($diffCount === 0) {
                return true;
            }
        } else {
            if ($tagsCount > $diffCount) {
                return true;
            }
        }

        return false;
    }