Fixed a stupid mistake with my ternaries.
Changed fallback condition for sendEmail. As long as PHPMailer was able to instantiate, use it regardless of settings existence.