public function getMetadata($key) { $path = $this->computePath($key); return isset($this->metadata[$path]) ? $this->metadata[$path] : array(); }