LPS-33472 changed model_impl.ftl conditional logic

Hey Brian,

I had Shuyang double check this new conditional logic before submitted the pull request.