@evert suggested throwing an exception if $value contains more than one element. Using `array_shift()` might look a bit nicer, but I don't see a benefit if we still have to check for > 1 elements.