I realize the $3 needn't be checked for the invite, and I've edited my above code to reflect the change.