title: Checking List returned from Rest to "null" in angularjs
body: <p>i am not able to check the status of list returned from REST whether the returned list is empty or not, data is returned in the following format <code>["IOC","Mycompany","Test"]</code></p>
  
  <pre><code> Test.save($scope.Data,
                     function(data){
                         //if(data==null) not working  
                         if(data[0]==null)//not working too
                             {
                             alert("empty")
                             }
                           });
  </code></pre>
  
  <p>How to check whether the returned list is empty or not???</p>