protected function isOperatorAllowed(BaseOperator $operator)
    {
        if (!empty($this->children)) {
            throw new \RuntimeException('The "Not" operator can only have 1 child operator.');
        }
        if ($operator instanceof ContainsOperatorsInterface) {
            throw new LdapQueryException('Cannot add an operator to bNot that can contain other operators.');
        }
    }