IsSecure() has been added to BaseController.php