check if there is population id before doing comparison..