Base implementation of function argument checking utility