public function children()
    {
        $children = $this->getAttribute('children') ?: [];

        if ($children && ! is_array($children) && ! ($children instanceof Collection)) {
            return (array) $children;
        }

        return $children;
    }