[angularjs] How to use ng-if to test if a variable is defined