Check if is bulk doc or single doc.