Better empty check for sources