check cosine sim for zero div