public function remove($elementOrFieldset)
    {
        if (!parent::has($elementOrFieldset)
            && $elementOrFieldset === 'identity'
            && $this->identityElement
        ) {
            $elementOrFieldset = $this->identityElement->getName();
        }

        return parent::remove($elementOrFieldset);
    }
public function remove($elementOrFieldset)
    {
        if (!parent::has($elementOrFieldset)
            && $elementOrFieldset === 'identity'
            && $this->identityElement
        ) {
            $elementOrFieldset = $this->identityElement->getName();
        }

        return parent::remove($elementOrFieldset);
    }
{@inheritDoc}