public function append(DOMElement &$parent, &$child)
    {
        // Check element
        if (empty($child)) {
            throw new InvalidArgumentException('You are trying to append an empty element.');
        }

        // Append element
        $parent->appendChild($child);

        // Return the DOMElement
        return $parent;
    }