What are you asking here, exactly?
You can check the current state of the heartbeat datastore with the PowerCLI cmdlet
$Cluster = Get-Cluster -Name Cluster_Name
$cluster.ExtensionData.RetrieveDasAdvancedRuntimeInfo().HeartbeatDatastoreInfo.Datastore | Get-VIObjectByVIView
if you give an error, then
$cluster.ExtensionData.RetrieveDasAdvancedRuntimeInfo().HeartbeatDatastoreInfo.Datastore
if the result is empty, the heartbeat datastore is not set
creating heartbeat datastore
yes