Python If Array Is Not None