Fixed $isAdmin is undefined.