Typescript If Array Is Not Empty In Python What Does