I usually find it more idiomatic:

```perl
if @rm_list
```

which reads as "if there are packages to remove".