Refactor boolean statements in angular question controller to be more clear