For a compact subset of a closed symplectic manifold , we prove that is heavy if and only if its relative symplectic cohomology over the Novikov field is nonzero. As an application, we show that if two compact sets are not heavy and Poisson commuting, then their union is also not heavy. A discussion on superheaviness together with some partial results is also included.