This version constraint check is not doing anything useful. You're defaulting to false, which is a noop in the template.

If this attribute gets overridden to true elsewhere, the directive will be added to the client.rb without the version constraint check.

This logic should be moved elsewhere. Either to the recipe or the template.