public function getRecipe(UUID $id) { $index = $id->toBinary(); return isset($this->recipes[$index]) ? $this->recipes[$index] : null; }