moved flat object equality check to util function
improved wording
prevent unnecessary store updates