public function get($collection_name, $query)
{
if (!is_array($query)) {
throw new \Exception("\$query must be an associative array of 'field => value' pairs");
}
$collection = new Collection($collection_name, true, $this);
return $collection->findOne($query);
}