fix error on type exists call - adding bulk indexing capability to pillow