original_string: protected function elementShouldDisplay(Base $objElement)
      {
          $blnReturn = true;
  
          $objCondition = $objElement->getConditionRecursive("visible");
          if (is_object($objCondition)) {
              // If the condition is met for the first element,
              // it automatically applies to the dynamic clones as well.
              // Therefore we only check dynamic counter 0
              if ($objCondition->isMet(0)) {
                  $blnReturn = $objCondition->getValue();
              } else {
                  $blnReturn = !$objCondition->getValue();
              }
          }
  
          return $blnReturn;
      }
code: protected function elementShouldDisplay(Base $objElement)
      {
          $blnReturn = true;
  
          $objCondition = $objElement->getConditionRecursive("visible");
          if (is_object($objCondition)) {
              // If the condition is met for the first element,
              // it automatically applies to the dynamic clones as well.
              // Therefore we only check dynamic counter 0
              if ($objCondition->isMet(0)) {
                  $blnReturn = $objCondition->getValue();
              } else {
                  $blnReturn = !$objCondition->getValue();
              }
          }
  
          return $blnReturn;
      }
code_tokens: protected function elementShouldDisplay ( Base $ objElement ) { $ blnReturn = true ; $ objCondition = $ objElement -> getConditionRecursive ( "visible" ) ; if ( is_object ( $ objCondition ) ) { // If the condition is met for the first element, // it automatically applies to the dynamic clones as well. // Therefore we only check dynamic counter 0 if ( $ objCondition -> isMet ( 0 ) ) { $ blnReturn = $ objCondition -> getValue ( ) ; } else { $ blnReturn = ! $ objCondition -> getValue ( ) ; } } return $ blnReturn ; }
docstring: Check if an element should be visible according to an optionally attached "visible" condition.
  
  @param Base $objElement
  @return bool
  @throws \Exception
docstring_tokens: Check if an element should be visible according to an optionally attached visible condition .