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