You can just write:

```if points_ids:
 ....```