Hide tab on product page on certain condition in magento 2.3.3

I am trying to use ifconfig to hide a tab but it is not working properly below is my code please check <?php namespace Afg\Hidetab\Block; class hidetab extends \Magento\Framework\View\Element\Html\Link { /** * @override * @see \Magento\Framework\View\Element\Html\Link::toHtml() * @return string */ public function toHtml() {return true ? parent::toHtml() : ”;} } ========= <referenceBlock name=”product.info.details”> <block class=”Magento\Catalog\Block\Product\View”…