Inserting empty element only if it exists.