Address check functions

- add new helper functions to check primary and secondary addresses
- replace address parameter checks with new helper functions

and a Happy New Year ...