add check for SwiftMailer