Add error trapping for empty phrases