move arg validations outside of helper