$api->hasData() Checks if injected data exists for the given key kirby/src/Api/Api.php#L287 $api->hasData(string $key): bool Parameters Name Type Default $key * string – Return type bool Parent class Kirby\Api\Api