Use the s2Member is_active() function, this function also checks if the constant is defined.