Moved checkHTTPS function to new class Essentials.class.php