public function __construct() { $wrappers = stream_get_wrappers(); if (in_array('https', $wrappers)) { $this->httpsSupport = true; } }