This would probably be better as:
```ruby
!!(datastore['PrependMigrate'] && datastore['PrependMigrate'].to_s.downcase == 'true')
```