The Truth Value Of A Series Is Ambiguous. Use A.empty