prevents empty category before populate

closes #2