included helper function for short-circuiting if tests when adding words