Members.filter for DateTime items

That’s an unusual construction.
The Group filter will return a list object.
The if() will try to evaluate the list as true or false; if the list is empty (null) I expect that will be false, not sure if any non-zero list would be true?
In either case, the list is then thrown away before executing the next line.

This might help if you really want to test list/no-list

This never happens and can be removed,

General guidance

I would imagine you want to forEach through your filtered list