Removed prints
Fixed trying to get not existing field (doc.contains(key))