using defined? instead of explicit version to allow monogoid 4 to work (and future)
Merge pull request #367 from danhawkins/master

using defined? instead of explicit version to allow mongoid 4 to work