protected function getItemByProperty($path, $value, $prop = 'name')
    {
        $items = $this->get($path, []);

        foreach($items as $item) {
            if($item[$prop] !== $value) {
                continue;
            }
            
            return $item;
        }
        
        // Throw exception if a value is not found
        throw new \Exception(sprintf(
            'Element with %s "%s" not found in %s list',
            $prop,
            $value,
            $path
        ));
    }