src/Zf2FileUploader/Validator/ResourceTokenValidator.php
public function isValid($tokens)
    {
        if (is_array($tokens)) {
            foreach ($tokens as $token) {
                if (!$this->validate($token)) {
                    return false;
                }
            }
        } else {
            return $this->validate($tokens);
        }
        return true;
    }
public function isValid($tokens)
    {
        if (is_array($tokens)) {
            foreach ($tokens as $token) {
                if (!$this->validate($token)) {
                    return false;
                }
            }
        } else {
            return $this->validate($tokens);
        }
        return true;
    }
Returns true if and only if $value meets the validation requirements

If $value fails validation, then this method returns false, and
getMessages() will return an array of messages that explain why the
validation failed.

@param mixed $tokens
@return bool