public function getNamePath()
{
if (strpos($this->attributes['name'], '[') === false) {
return [$this->attributes['name']];
}
$path = explode('[', $this->attributes['name'], 2);
// ['name']['[foo][bar]']
return array_merge([$path[0]], explode('][', mb_substr($path[1], 0, -1)));
}