For empty array ([]) returns None, otherwise acts same as opt.
[]
optEmptyArray(undefined) // NoneoptEmptyArray([]) // NoneoptEmptyArray([1]) // Some([1])
For empty array (
[]
) returns None, otherwise acts same as opt.