Changed method for checking field existence in object