My question is clear i guess, i have the bellow code in my controller

```
vf.filtroses = [];
    FiltrosService.currentuser().success(function(data, status) {
        vf.filtroses = data;
    });

```

i want to verify if vf.filtroses has elements or it's empty.
i tryed .lenght and equals:

```
vf.nofiltros = false;
    vf.filtroses = [];
    FiltrosService.currentuser().success(function(data, status) {
        vf.filtroses = data;
    });
    if(angular.equals([], vf.filtroses)){
        vf.nofiltros = true;
    }

```

but it does not work for me !

any ideas plz??