Now you don't have to worry with declaring the globals, they're already available using the ca class of the classAct module.
function myFunc () { $admin = FALSE; if (ca::$user->uid == 1) { $admin = TRUE; } }