prevents empty category before populate
Merge pull request #3 from theist/issue_2

prevents empty category before populate