Introduce affiliate_exists() method
use affiliate_exists() to prevent referrals getting logged for affiliates that don't exists. Closes #97