If Array Is Not Empty Typescript Interface Static Method