Checks if the response is valid
@return bool
13966
public function isValid(ShaComposer $shaComposer)
    {
        if (function_exists('hash_equals')) {
            return hash_equals($shaComposer->compose($this->parameters), $this->shaSign);
        } else {
            return $shaComposer->compose($this->parameters) == $this->shaSign;
        }
    }
1219632
public function isValid()
    {
        if ( ! empty($this->name) and $this->hasMethod('__call') and $this->isSubclassOf('\O2System\Kernel\Http\Controller')) {
            return true;
        }

        return false;
    }
111124
public function valid()
  {
    $key = $this->key();
    return is_null($key) ? false : isset($this->_data[$key]);
  }
693555
public function valid()
    {
        echo "\n", __METHOD__, "\n";
        $key = key($this->values);
        var_export($key);

        return ($key !== null && $key !== false);
    }
454970
public function valid()
    {
        if ($this->container['shoutcastDestination'] === null) {
            return false;
        }
        if ($this->container['icecast2Public'] === null) {
            return false;
        }
        if ($this->container['akamaiDestinationServer'] === null) {
            return false;
        }
        if ($this->container['shoutcastIcq'] === null) {
            return false;
        }
        if ($this->container['facebookEventSourceName'] === null) {
            return false;
        }
        if ($this->container['timeToLive'] === null) {
            return false;
        }
        if ($this->container['password'] === null) {
            return false;
        }
        if ($this->container['facebookDestType'] === null) {
            return false;
        }
        if ($this->container['rtpWrap'] === null) {
            return false;
        }
        if ($this->container['icecast2Name'] === null) {
            return false;
        }
        if ($this->container['akamaiHostId'] === null) {
            return false;
        }
        if ($this->container['icecast2Icq'] === null) {
            return false;
        }
        if ($this->container['host'] === null) {
            return false;
        }
        if ($this->container['connectionFlashVersion'] === null) {
            return false;
        }
        if ($this->container['cupertinoRenditions'] === null) {
            return false;
        }
        if ($this->container['facebookTitle'] === null) {
            return false;
        }
        if ($this->container['debugPackets'] === null) {
            return false;
        }
        if ($this->container['shoutcastPublic'] === null) {
            return false;
        }
        if ($this->container['shoutcastAim'] === null) {
            return false;
        }
        if ($this->container['profile'] === null) {
            return false;
        }
        if ($this->container['icecast2Description'] === null) {
            return false;
        }
        if ($this->container['sessionStatus'] === null) {
            return false;
        }
        if ($this->container['shoutcastMetaname'] === null) {
            return false;
        }
        if ($this->container['icecast2Genre'] === null) {
            return false;
        }
        if ($this->container['facebookDestId'] === null) {
            return false;
        }
        if ($this->container['queryString'] === null) {
            return false;
        }
        if ($this->container['akamaiEventName'] === null) {
            return false;
        }
        if ($this->container['version'] === null) {
            return false;
        }
        if ($this->container['shoutcastName'] === null) {
            return false;
        }
        if ($this->container['sendStreamCloseCommands'] === null) {
            return false;
        }
        if ($this->container['port'] === null) {
            return false;
        }
        if ($this->container['sendFCPublish'] === null) {
            return false;
        }
        if ($this->container['icecast2Aim'] === null) {
            return false;
        }
        if ($this->container['httpPlaylistCount'] === null) {
            return false;
        }
        if ($this->container['httpPlaylistTimeout'] === null) {
            return false;
        }
        if ($this->container['facebookDestName'] === null) {
            return false;
        }
        if ($this->container['audioPort'] === null) {
            return false;
        }
        if ($this->container['icecast2Metaname'] === null) {
            return false;
        }
        if ($this->container['sourceStreamName'] === null) {
            return false;
        }
        if ($this->container['connectionCode'] === null) {
            return false;
        }
        if ($this->container['localBindAddress'] === null) {
            return false;
        }
        if ($this->container['shoutcastProtocol'] === null) {
            return false;
        }
        if ($this->container['debugLogChildren'] === null) {
            return false;
        }
        if ($this->container['serverName'] === null) {
            return false;
        }
        if ($this->container['adaptiveStreaming'] === null) {
            return false;
        }
        if ($this->container['facebookEventSourceType'] === null) {
            return false;
        }
        if ($this->container['enabled'] === null) {
            return false;
        }
        if ($this->container['shoutcastIrc'] === null) {
            return false;
        }
        if ($this->container['sendReleaseStream'] === null) {
            return false;
        }
        if ($this->container['shoutcastUrl'] === null) {
            return false;
        }
        if ($this->container['icecast2Irc'] === null) {
            return false;
        }
        if ($this->container['facebookDescription'] === null) {
            return false;
        }
        if ($this->container['debugLog'] === null) {
            return false;
        }
        if ($this->container['shoutcastGenre'] === null) {
            return false;
        }
        if ($this->container['akamaiStreamId'] === null) {
            return false;
        }
        if ($this->container['akamaiHdNetwork'] === null) {
            return false;
        }
        if ($this->container['adaptiveGroups'] === null) {
            return false;
        }
        if ($this->container['httpPlaylistAcrossSessions'] === null) {
            return false;
        }
        if ($this->container['secureTokenSharedSecret'] === null) {
            return false;
        }
        if ($this->container['httpFakePosts'] === null) {
            return false;
        }
        if ($this->container['sendSSL'] === null) {
            return false;
        }
        if ($this->container['sendOriginalTimecodes'] === null) {
            return false;
        }
        if ($this->container['icecast2Destination'] === null) {
            return false;
        }
        if ($this->container['facebookAccessToken'] === null) {
            return false;
        }
        if ($this->container['userName'] === null) {
            return false;
        }
        if ($this->container['facebookPrivacy'] === null) {
            return false;
        }
        if ($this->container['streamName'] === null) {
            return false;
        }
        if ($this->container['removeDefaultAppInstance'] === null) {
            return false;
        }
        if ($this->container['videoPort'] === null) {
            return false;
        }
        if ($this->container['httpWriterDebug'] === null) {
            return false;
        }
        if ($this->container['icecast2Url'] === null) {
            return false;
        }
        if ($this->container['akamaiSendToBackupServer'] === null) {
            return false;
        }
        if ($this->container['destinationServer'] === null) {
            return false;
        }
        if ($this->container['application'] === null) {
            return false;
        }
        if ($this->container['entryName'] === null) {
            return false;
        }
        if ($this->container['streamWaitTimeout'] === null) {
            return false;
        }
        if ($this->container['appInstance'] === null) {
            return false;
        }
        if ($this->container['originalTimecodeThreshold'] === null) {
            return false;
        }
        if ($this->container['autoStartTranscoder'] === null) {
            return false;
        }
        if ($this->container['sanjoseRepresentationId'] === null) {
            return false;
        }
        return true;
    }
349324
public function valid()
    {
        return $this->isValidKey($this->currentKey) ? array_key_exists($this->currentKey, $this->items) : false;
    }
1177560
public function isValid(): bool
    {
        $uris = [];
        foreach ($this->members as $member) {
            $uri = $member->uri;
            if ($uri) {
                if (isset($uris[$uri])) {
                    return false;
                } else {
                    $uris[$uri] = true;
                }
            }
        }
        return true;
    }
271725
public function validate(): bool
    {
        if (! $this->requestIsValid()) {
            return false;
        }

        $requestOptions = $this->getDefaultRequestOptions();
        $customOptions = $this->getCustomRequestOptions();

        if (! empty($customOptions) && is_array($customOptions)) {
            $requestOptions = array_merge($requestOptions, $customOptions);
        }

        $response = $this->guzzleClient->request('POST', self::OPENID_URL, $requestOptions);

        $results = $this->parseResults($response->getBody()->getContents());

        $this->parseSteamID();
        $this->parseInfo();

        return $results->is_valid == 'true';
    }
151138
public function valid()
    {

        $allowed_values = $this->getInputAllowableValues();
        if (!in_array($this->container['input'], $allowed_values)) {
            return false;
        }
        return true;
    }
269626
public function isValid()
    {
        $valid = true;
        $this->validate();
        foreach ($this->getIterator() as $element) {
            if ($element instanceof ValidationAwareInterface) {
                $valid = $element->isValid()
                    ? $valid
                    : false;
            }
        }
        return $valid;
    }
834439
public function valid()
    {

        if ($this->container['loggedAt'] === null) {
            return false;
        }
        if ($this->container['containerId'] === null) {
            return false;
        }
        if ($this->container['containerTypeId'] === null) {
            return false;
        }
        if ($this->container['characterId'] === null) {
            return false;
        }
        if ($this->container['locationId'] === null) {
            return false;
        }
        if ($this->container['locationFlag'] === null) {
            return false;
        }
        $allowedValues = $this->getLocationFlagAllowableValues();
        if (!in_array($this->container['locationFlag'], $allowedValues)) {
            return false;
        }
        if ($this->container['action'] === null) {
            return false;
        }
        $allowedValues = $this->getActionAllowableValues();
        if (!in_array($this->container['action'], $allowedValues)) {
            return false;
        }
        $allowedValues = $this->getPasswordTypeAllowableValues();
        if (!in_array($this->container['passwordType'], $allowedValues)) {
            return false;
        }
        return true;
    }
62456
protected function isValidResponse($response)
    {
        if (empty($this->acceptable)) {
            return true;
        }

        if ($this->acceptableIsClosure()) {
            return call_user_func($this->acceptable, $response);
        }

        return $this->isAcceptableResponse($response);
    }
1082766
public function valid()
    {
        if (isset($this->buffer[$this->position])) {
            return (bool) $this->buffer[$this->position];
        }
        $this->ensurePosition();
        return $this->resultSet->valid();
    }
607029
public function isValid()
    {
        $result = true;
        $fields = $this->getFields();
        // Check each element for validators, validate them and return the result.
        foreach ($fields as $field) {
            if ($field->validate() == false) {
                $result = false;
            }
        }
        return $result;
    }
194969
protected function validate(): bool
    {
        $A2 = $this->request->getMethod().':'.$this->digestParts['uri'];

        if ('auth-int' === $this->digestParts['qop']) {
            // Making sure we support this qop value
            if (!($this->qop & self::QOP_AUTHINT)) {
                return false;
            }
            // We need to add an md5 of the entire request body to the A2 part of the hash
            $body = $this->request->getBody($asString = true);
            $this->request->setBody($body);
            $A2 .= ':'.md5($body);
        } elseif (!($this->qop & self::QOP_AUTH)) {
            return false;
        }

        $A2 = md5($A2);

        $validResponse = md5("{$this->A1}:{$this->digestParts['nonce']}:{$this->digestParts['nc']}:{$this->digestParts['cnonce']}:{$this->digestParts['qop']}:{$A2}");

        return $this->digestParts['response'] === $validResponse;
    }
999058
public function valid()
    {
        // initialize/refresh cursor
        if ($this->cursor != 0 && !isset($this->elements[$this->index])) {
            $this->scan();
        }

        return isset($this->elements[$this->index]);
    }
724682
public function isValid()
    {
        $payPalRequest = $this->getPayPalRequest();
        $payPalResponse = $this->getPayPalResponse();
        $shopOwnerUserName = $this->getShopOwnerUserName();
        $receiverEmailPayPal = $payPalRequest[self::RECEIVER_EMAIL];

        return ($payPalResponse->isPayPalAck() && $receiverEmailPayPal == $shopOwnerUserName);
    }