fix #1: $or/$and requires nonempty array