Typescript If Array Not Inside Math