Verify if the condition is met

@param int $intDynamicPosition Dynamic position of the field to verify
@return bool True if it is met, false if not
@throws \Exception
177954
public function isMet($intDynamicPosition = 0)
    {
        $blnResult = false;

        switch ($this->__comparisontype) {
            default:
            case ValidForm::VFORM_MATCH_ANY:
				/* @var $objComparison Comparison */
				foreach ($this->__comparisons as $objComparison) {
                    if ($objComparison->check($intDynamicPosition)) {
                        $blnResult = true; // One of the comparisons is true, that's good enough.
                        break;
                    }
                }

                break;

            case ValidForm::VFORM_MATCH_ALL:
                $blnFailed = false;
				/* @var $objComparison Comparison */
                foreach ($this->__comparisons as $objComparison) {
                    if (!$objComparison->check($intDynamicPosition)) {
                        $blnFailed = true;
                        break;
                    }
                }

                $blnResult = !$blnFailed;

                break;
        }

        return $blnResult;
    }
985776
public function GetActiveStepPosition()
    {
        $iActivePos = false;
        $iPointer = $this->getItemPointer();
        $this->GoToStart();
        $iStepNumber = 0;
        while ($oItem = $this->Next()) {
            ++$iStepNumber;
            if ($oItem->bIsTheActiveStep) {
                $iActivePos = $iStepNumber;
            }
        }
        $this->setItemPointer($iPointer);

        return $iActivePos;
    }
1372156
public function fieldPosition($field)
    {
        if ($field instanceof FormField) {
            $field = $field->getName();
        }

        $i = 0;
        foreach ($this->dataFields() as $child) {
            if ($child->getName() == $field) {
                return $i;
            }
            $i++;
        }

        return false;
    }
730829
protected function isInTransaction() {
    return isset(self::$inTransaction[$this->connId]) && self::$inTransaction[$this->connId] === true;
  }
1368876
def has_field(cls, field_name):
        
        if super(ModelWithDynamicFieldMixin, cls).has_field(field_name):
            return True

        try:
            cls._get_dynamic_field_for(field_name)
        except ValueError:
            return False
        else:
            return True
716339
private function isPrevLineEmpty(int $startPosition): bool
    {
        $isPrevLineEmpty = true;
        $posPrevContentPos = $this->loadPrevDocBlockContent($startPosition);

        if ($posPrevContentPos !== -1) {
            $isPrevLineEmpty = $this->tokens[$startPosition]['line'] - 1 > $this->tokens[$posPrevContentPos]['line'];
        }

        return $isPrevLineEmpty;
    }
739309
private function __validate($intCount = null)
    {
        $blnReturn = true;

        foreach ($this->__fields as $field) {
            // Note: hasContent is only accurate if isValid() is called first ...
            if (! $field->isValid($intCount)) {
                $blnReturn = false;
                break;
            }
        }

        // ... therefore, check if the area is empty after validation of all the fields.
        if ($this->__active && ! $this->hasContent($intCount)) {
            $blnReturn = true;
        }

        return $blnReturn;
    }
668327
private function checkFormIdInSession()
    {
        if (!isset($_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID])) {
            return false;
        }

        if (!$_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] === $this->formId) {
            return false;
        }

        return true;
    }
1036993
public function hasPositionsInCart() {
    $account = \Drupal::currentUser();

    $query = $this->connection->select('site_cart', 'n');
    $query->addExpression('COUNT(n.cid)');
    $query->condition('n.oid', 0);

    if ($account->id()) {
      $query->condition('n.uid', $account->id());
    } else {
      $query->condition('n.uid_hash', kvantstudio_user_hash());
    }

    return (bool) $query->execute()->fetchField();
  }
80438
private function isAddressValid($displayedAddress, AddressInterface $address)
    {
        return
            $this->hasAddressPart($displayedAddress, $address->getCompany(), true) &&
            $this->hasAddressPart($displayedAddress, $address->getFirstName()) &&
            $this->hasAddressPart($displayedAddress, $address->getLastName()) &&
            $this->hasAddressPart($displayedAddress, $address->getPhoneNumber(), true) &&
            $this->hasAddressPart($displayedAddress, $address->getStreet()) &&
            $this->hasAddressPart($displayedAddress, $address->getCity()) &&
            $this->hasAddressPart($displayedAddress, $address->getProvinceCode(), true) &&
            $this->hasAddressPart($displayedAddress, $this->getCountryName($address->getCountryCode())) &&
            $this->hasAddressPart($displayedAddress, $address->getPostcode())
        ;
    }
611208
public boolean isSyncCurrentPosition(int syncmode) throws BitstreamException
	{
		int read = readBytes(syncbuf, 0, 4);
		int headerstring = ((syncbuf[0] << 24) & 0xFF000000) | ((syncbuf[1] << 16) & 0x00FF0000) | ((syncbuf[2] << 8) & 0x0000FF00) | ((syncbuf[3] << 0) & 0x000000FF);

		try
		{
			source.unread(syncbuf, 0, read);
		}
		catch (IOException ex)
		{
		}

		boolean sync = false;
		switch (read)
		{
			case 0:
				sync = true;
				break;
			case 4:
				sync = isSyncMark(headerstring, syncmode, syncword);
				break;
		}

		return sync;
	}
624296
public function offsetExists($offset)
    {
        $offset = $this->convertOffset($offset);
        $this->checkOffset($offset);
        return isset($this->data[$offset]);
    }
981658
protected function doSetSkillId(Position $model, $relatedId) {
		if ($model->getEndPositionId() !== $relatedId) {
			$model->setEndPositionId($relatedId);

			return true;
		}

		return false;
	}
358495
public function isValid()
    {
        $singleAssertion = $this->validateNumAssertions();
        if (!$singleAssertion) {
            throw new Exception('Multiple assertions are not supported');
        }

        $validTimestamps = $this->validateTimestamps();
        if (!$validTimestamps) {
            throw new Exception('Timing issues (please check your clock settings)');
        }

        $objXMLSecDSig = new XMLSecurityDSig();

        $objDSig = $objXMLSecDSig->locateSignature($this->_document);
        if (!$objDSig) {
            throw new Exception('Cannot locate Signature Node');
        }
        $objXMLSecDSig->canonicalizeSignedInfo();
        $objXMLSecDSig->idKeys = array('ID');

        $objKey = $objXMLSecDSig->locateKey();
        if (!$objKey) {
            throw new Exception('We have no idea about the key');
        }

        try {
            $objXMLSecDSig->validateReference();
        } catch (Exception $e) {
            throw new Exception('Reference Validation Failed');
        }

        XMLSecEnc::staticLocateKeyInfo($objKey, $objDSig);

        $objKey->loadKey($this->_settings->idpPublicCertificate, false, true);

        return ($objXMLSecDSig->verify($objKey) === 1);
    }
442964
protected function hasToken(int $offset = 0) : bool
    {
        return $this->getPosition() + $offset < count($this->getTokens());
    }
820430
public function offsetExists($offset)
    {
        switch ($offset) {
            case 'position': return isset($this->position);
            break;
            case 'subSpecs': return (0 < count($this->subSpecs)) ? true : false;
            break;
            default: return false;
        }
    }
328304
public function checkAffected(PDOStatement $statement, \Exception $exceptionToThrow = null)
    {
        if (!$exceptionToThrow instanceof \Exception) {
            $exceptionToThrow = new NoRecordsAffectedException();
        }
        if (!boolval($statement->rowCount()) && $this->getIsStrict()) {
            throw $exceptionToThrow;
        }
        return true;
    }