if ($q->https('HTTP_USER_AGENT') { #yup they're secure } else { #nope they're not }