Check for duplicated habits, and empty named habits.