@param string $type

@return bool
332777
public static function canVoid($type)
    {
        $transactionTypesList = [
            self::AUTHORIZE,
            self::AUTHORIZE_3D,
            self::TRUSTLY_SALE,
            self::TCS,
            self::FASHIONCHEQUE,
            self::INTERSOLVE
        ];

        return in_array(strtolower($type), $transactionTypesList);
    }
679440
public function exists($type)
    {
        foreach ($this->loaders as $loader) {
            if ($loader->exists($type)) {
                return true;
            }
        }

        return false;
    }
773319
public static function isValid(int $type) : bool
    {
        return in_array($type, [self::UNKNOWN, self::STANDARD, self::FULL, self::LITE], true);
    }
913456
private function isType($type) {

    	if(false === is_string($type)) {
			return false;
		}

		$class = $this -> getTypeClass($type);

		return true === class_exists($class);
    }
1321607
public function is($type)
    {
        $myMimetype = $this->getMimetype();

        if (strpos($type, '/')) {
            return strtolower($myMimetype) == strtolower($type);
        }

        $prefix = strtolower(explode('/', $myMimetype)[0]);

        return strtolower($type) == $prefix;
    }
326707
public function type($type = null)
    {
        if (!func_num_args()) {
            return $this->_type;
        }
        $this->_type = $type;
        return $this;
    }
356330
public static function has($key, $type = 'ses')
    {
        return ($GLOBALS['TSFE']->fe_user->getKey(self::isType($type), $key)) ? true : false;
    }
271903
private function isInheritanceType($type)
    {
        return $type === InheritanceType::NONE
            || $type === InheritanceType::SINGLE_TABLE
            || $type === InheritanceType::JOINED
            || $type === InheritanceType::TABLE_PER_CLASS;
    }
297594
public function clearCache($type = null) {
		$config = $type ?: 'default';
		Cache::clear(false, $config);

		return true;
	}
43005
public function isNodeTypeBlacklisted(string $type) : bool
    {
        return $this->nodeTypeBlacklist && isset($this->nodeTypeBlacklist[$type]);
    }
520038
protected function getPlayMode(string $type): bool
    {
        $mode = Helper::getMode($this->attributes["PlayMode"]);
        return $mode[$type];
    }
48309
public function isSatisfiedBy(ReturnType\TypeInterface $type)
    {
        if (false == $type->isRealType()) {
            return false;
        }

        switch ($type->getDataType()) {
            case Types::T_STRING:
            case Types::T_ISTRING:
                return true;
            default:
                return false;
        }
    }
1148264
public static function getCodeByType($type)
    {
        if (isset(self::$typeList[$type])) {
            return self::$typeList[$type];
        } else {
            return false;
        }
    }
485282
private function isFixableReturnType(string $type): bool
    {
        // $type === null is not valid in our slevomat helper.
        return TypeHintHelper::isSimpleTypeHint($type) || $type === 'null' || $this->isCustomArrayType($type);
    }
340953
public function isSatisfiedBy(ReturnType\TypeInterface $type)
    {
        if (true == $type->isRealType()) {
            return false;
        }

        return Types::T_OBJECT == $type->getDataType() && false === $type->isCollection();
    }
135725
public function hasFieldTypes($type)
    {
        foreach ($this->getFields() as $component)
        {
            if ($component->isFieldType($type)) return true;
        }
    }
211242
public function canHandle(string $type) : bool
    {
        $response = false;

        foreach ($this->contentTypes as $contentType) {
            if (stripos($type, $contentType) !== false) {
                $response = true;
                break;
            }
        }

        return $response;
    }