looks like you can define `query_args` in the conditional then pull the `dframe` outside of it