Use class in utilities.py for generic argument validation