Irreducibility Criterion for Projective Varieties via Homogeneous Vanishing Ideals