allow empty array in define regex