slug = $parts[2]; $cat = $this->redisCache->get('magazine-' . $parts[2], function (){ return null; }); $tags = $cat->getTags(); $title = array_filter($tags, function($tag) { return ($tag[0] === 'title'); }); $this->title = $title[array_key_first($title)][1]; } else { dump($coordinate);die(); } } }