Return true if rules for a key should be removed from the detected rules

@param string $key
@param XType  $type

@return bool
339630
protected function shouldRemoveRules($key, XType $type)
    {

        if ($type instanceof SequenceType) {
            return true;
        }

        if ($type->isComplex()) {
            return true;
        }

        return false;
    }
828109
public static function checkSchemaType($type)
    {
        if (isset(self::$_schemaTypes[$type])) {
            return self::$_schemaTypes[$type];
        } else {
            return false;
        }
    }
955785
public function containsKey(string $key): bool
    {
        if (isset($this->orgData[$key])) {
            return ! isset($this->removeAttributes[$key]);
        } else {
            return isset($this->addAttributes[$key]);
        }
    }
1299294
public function delete($key): bool
    {
        $this->checkKey($key);
        return (bool) $this->clean($key);
    }
1203512
public function clear($key) {
        if ($this->exists($key)) {
            unset($this->data[$key]);

            return true;
        }

        return false;
    }
156278
public function delete($key)
    {
        $this->throwInvalidStringArgumentException($key);

        if($this->has($key)) {
            unset($this->cache[$key]);
            return true;
        }
        return false;
    }
972309
private function hasData($type, $key)
    {
        return isset($this->data[$type]) && isset($this->data[$type][$key]);
    }
926924
public function has(string $key): bool
    {
        return $this->customTypes && $this->customTypes->has($key) || array_key_exists($key, $this->types);
    }
953540
public function delete($key)
    {
        $permission   =   $this->findByKey($key);
        if (! isset($permission)) {
            return true;
        }

        return $permission->delete();
    }
111900
public function activate($type, $key)
    {
        // Load
        $json = $this->load();
        unset($json[$type]["elements"][$key]["hidden"]);
        $this->sortJson($json);
        $this->write($json);
    }
702546
public function remove( $key )
    {
        if ( $key instanceof Interfaces\SeedLike )
        {
            $key = $key->getId();
        }

        if ( !Utility\Option::contains( $this->_bag, $key ) )
        {
            return false;
        }

        Utility\Option::remove( $this->_bag, $key );

        return true;
    }
1101340
protected function removeState($key)
    {
        if (!Yii::$app->has('session')) {
            return true;
        }
        /* @var \yii\web\Session $session */
        $session = Yii::$app->get('session');
        $key = $this->getStateKeyPrefix() . $key;
        $session->remove($key);
        return true;
    }
1159643
public function remove( $selector, $key ){
		$rule	= $this->getRuleBySelector( $selector );
		if( !$rule )
			return FALSE;
		if( $rule->removePropertyByKey( $key ) ){
			if( !$rule->getProperties() )
				$this->removeRuleBySelector( $selector );
			return TRUE;
		}
		return FALSE;
	}
418987
protected function delete_version_issue( $key, $type = '' ) {
		if ( true === $this->option_auto_delete && 'option' === $type ) {
			$this->delete_option( $key );
		}

		if ( true === $this->transient_auto_delete ) {
			return $this->delete_transient( $key );
		}
		return false;
	}
909371
protected function shouldBeFiltered($key)
	{
		if (isset($this->filterIndex[$key]))
		{
			return $this->filterIndex[$key];
		}

		return $this->autoFilter;
	}
1073343
public function delete($key): bool {
        $node = $this->getNodeFromHead($key);
        if (null === $node) {
            return false;
        }
        /** @var Node $head */
        $head = $this->head;
        while (null !== $head) {
            if (Comparator::equals($head->getKey(), $node->getKey())) {
                $this->unset($head);
                $this->hashMap->remove($key);
                return true;
            }
            $head = $head->getNext();
        }
        return false;
    }
304899
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->data[$key]);
            return true;
        } else {
            return false;
        }
    }