how do i check if an object has a particular field?

the_object.respond_to?(“complete”)

Should work.