use function arity to determine if default value is returned