public function hasMetadata($metadataKey) { if ($this->getLevel() instanceof Level) { $this->getLevel()->getBlockMetadata()->hasMetadata($this, $metadataKey); } }