Typescript Empty Array Undefined In Fraction