Sure, but the second condition seems to merely confirm that the current user has membership in at least one group, which is not only an odd requirement, but also redundant if the first condition is true (i.e., if the user has membership in the 'admin' group).
Anthony