diff --git a/Metadata.php b/Metadata.php index 93d6fd1..d1e99d1 100644 --- a/Metadata.php +++ b/Metadata.php @@ -21,11 +21,15 @@ public static function getResourceMetadata(string $resourceType, string $resourc return $data[$resourceCode]; } - public static function metadataExists(string $resourceType, string $resourceCode): bool + public static function metadataExists(string $resourceType, string $resourceCode, string $type): bool { $data = self::loadData($resourceType); - return array_key_exists($resourceCode, $data); + if(array_key_exists($resourceCode, $data)){ + return array_key_exists($type, $data[$resourceCode]); + } + + return false; } private static function loadData(string $resourceType): array