Creating Optional NonEmptyArray from Array in JavaScript - Effect Community