Added return false when there is no email template set