$and, $or and $nor can not be empty array mongo query error code example
Example: mongodb check for array not empty query
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })
collection.find({ arrayElementName: { $exists: true, $not: {$size: 0} } })