(b) Every undertaking or promise hereafter made, whether written or oral, express or implied, constituting or contained in any contract or agreement of hiring or employment between any individual firm, company, association, or corporation, and any employee or prospective employee of the same, whereby
- (1) either party to such contract or agreement undertakes or promises not to join, become or remain a member of, any labor organization or of any employer organization; or
- (2) either party to such contract or agreement undertakes or promises to withdraw from an employment relation in the event that the party joins, becomes or remains a member of, any labor organization or of any employer organization.