protected function checkEnvironment() { if (!function_exists('mysqli_connect')) { throw new SwarmException('MySQL functions missing.'); } }