What are you checking for here? What is the other type that self.purchase_date is?