Array assertion for MongoDB queries