Ensure that enforce_dependency is coerced to Boolean according to the docs