Utility functions to aid in parameter checking
