<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def needs_confirmation(self):
 """ set is_active to False if needs email confirmation """

        if EMAIL_CONFIRMATION:
            self.is_active = False
            self.save()
            return True
        else:
            return False