svc++: 11-1: Add helper functions to check for invalid inputs