/**
  * @param string $email
  * @param boolean $newsletter
  */
 public static function update($email, $name, $active)
 {
     $member = NewsletterMember::findByEmail($email);
     if (isset($member)) {
         $member->name = $name;
         $member->active = $active;
         $member->update();
     } else {
         if ($active) {
             self::create($email, $name);
         }
     }
 }
 /**
  * @param string $email
  * @return boolean
  */
 public static function delete($email)
 {
     // Find existing NewsletterMember
     $member = NewsletterMember::findByEmail($email);
     // Delete Newsletter Member
     if (isset($member)) {
         $member->delete();
     }
     return true;
 }